unity,生成的mac版游戏切场景时卡死解法

unity版本为5.1.1,在编辑器里运行没问题,build出的windows版运行也没问题,但build出的mac版在个别场景切换时会卡死,通过查看log(查看build版本log的方法参考:http://blog.theknightsofunity.com/accessing-unity-game-logs/),看到最后报出的错误是:

Receiving unhandled NULL exception

如果改成development build,则不会卡死,运行正常。

搜到这个帖子:http://forum.unity3d.com/threads/mac-os-builds-crashing-in-unity-5.316489/

其中问题跟我遇到的一致,讨论结果认为是unity自身的bug。

将unity更新到5.2.1,问题不再出现。

原文地址:https://www.cnblogs.com/wantnon/p/5801382.html