Unity运行失败,Unsafe code may only appear if compiling with /unsafe

unity报错,Unsafe code may only appear if compiling with /unsafe. Enable "Allow 'unsafe' code" in Player Settings to fix this error。

解决办法:Edit->Project Settings->Player, 勾选上Allow 'Unsafe Code'选项

猜你喜欢

转载自blog.csdn.net/grace_yi/article/details/108515528