我正在使用 Unity3D 4.3
并调用我创建的一个 DLL
。
当尝试调用它唯一的函数时,代码如下:
void GetModelReferences(int &nVertices, float * vertices, int &nTriangles, int * triangles, float * normals, float * uvCoordinates);
Unity 给我报错:
Unsafe code requires the `unsafe' command line option to be specified
在我的MonoDevelop
中,我打开了:Project->Assembly-Csharp options
,并启用了unsafe
模式。
这可以减少一些错误,但是最后一个错误仍然存在。
Unsafe code requires the `unsafe' command line option to be specified
我该做什么?