or *_*ran 6 c# dll unsafe unity-game-engine
我正在使用Unity3D 4.3并调用DLL我创建的那个.当试图调用它所拥有的唯一函数时,这是:
void GetModelReferences(int &nVertices, float * vertices, int &nTriangles, int * triangles, float * normals, float * uvCoordinates);
Run Code Online (Sandbox Code Playgroud)
团结给了我一个错误:
Unsafe code requires the `unsafe' command line option to be specified
Run Code Online (Sandbox Code Playgroud)
所以在我MonoDevelop打开的时候:Project->Assembly-Csharp options打开unsafe模式.
它减少了部分错误,但最后一个不会消失
Unsafe code requires the `unsafe' command line option to be specified
Run Code Online (Sandbox Code Playgroud)
我该怎么办?
Cod*_*ist 12
转到项目属性页面,然后选中Build复选框Allow unsafe code.这应该可以解决您的问题.
| 归档时间: |
|
| 查看次数: |
18996 次 |
| 最近记录: |