I use Unity3D 4.3 and call the DLL that I created. when trying to call a single function, which is:
void GetModelReferences(int &nVertices, float * vertices, int &nTriangles, int * triangles, float * normals, float * uvCoordinates);
gives me an error:
Unsafe code requires the `unsafe' command line option to be specified
so in my MonoDevelop I opened: Project->Assembly-Csharp options and turned on unsafe mode.
it reduces some errors, but this last one does not go away
Unsafe code requires the `unsafe' command line option to be specified
What am I doing?
source share