我在用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
mode.
它减少了部分错误,但最后一个不会消失
Unsafe code requires the `unsafe' command line option to be specified
我应该怎么办?
转到您的项目属性页面并检查Build
复选框Allow unsafe code
。
这应该可以解决你的问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)