导入unity中的代码,出现如下错误,该如何解决?
Unsafe code may only appear if compiling with /unsafe. Enable "Allow 'unsafe' code" in Player Settings to fix this error

解决这个问题,只需要设置就可以。
设置的地方
在project setting的Player 里的 Script compilation下面的--additional compiler arguments里。
如下图:











![[中级]软考_软件设计_计算机组成与体系结构_06_ 流水线技术](https://img-blog.csdnimg.cn/direct/d38be02d7a6b4c6083e376a985d6f6fc.png)








