Thanks for the help.
I’ve managed to do some basic things in Unity with Rhino3dmIO. Loading a file via "Rhino.FileIO.File3dm.Read()"
Works flawlessly, however, as soon as I try to create a “Rhino.Geometry.Mesh” Object, I get this error in the Unity Debug console:
Unhandled Exception: System.TypeLoadException: Could not load type 'Rhino.Geometry.Mesh' from assembly 'Rhino3dmIO, Version=5.1.30000.12, Culture=neutral, PublicKeyToken=null'. at (wrapper managed-to-native) System.MonoType:GetMethodsByName (string,System.Reflection.BindingFlags,bool,System.Type) ...
(error message goes on forever).
I have placed rhino3dmio_native.dll and Rhino3dmIO.dll in the Unity Plugin directories. Am I missing something?
I have tried compiling the dlls as both .NET 3.5 and 4.0 within VS2013, both producing the same error in Unity. I’ve been trying to find out what could cause this, but I am rather lost because my knowledge on .NET and how to make it work with Unity is pretty limited.
Any ideas why this would happen when using Rhino.Geometry but not with Rhino.FileIO?