dll的数据传递给U3D中的C#,需要使用C#的指针,直接编译会出现以下错误:
Unsafe code requires the 'unsafe' command line option to be specified。
解决办法:
在你的Assets目录下面添加smcs.rsp文件,里面只加一行字不要有空格
-unsafe。
重启Unity3d。
dll的数据传递给U3D中的C#,需要使用C#的指针,直接编译会出现以下错误:
Unsafe code requires the 'unsafe' command line option to be specified。
解决办法:
在你的Assets目录下面添加smcs.rsp文件,里面只加一行字不要有空格
-unsafe。
重启Unity3d。