简体   繁体   English

Unity游戏在一个特定场景中独立崩溃?

[英]Unity game crashes in standalone on one specific scene?

My game works perfectly fine in the Unity editor. 我的游戏在Unity编辑器中运行良好。 When building to standalone macOS, every scene works, except my main game loop, it crashes with this error. 当构建为独立的macOS时,除我的主游戏循环外,每个场景都可以工作,并因该错误而崩溃。

Crashed Thread:        12  UnityGfxDeviceWorker

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 
'NSInvalidArgumentException', reason: '-[MTLIGSampler textureType]: 
unrecognized selector sent to instance 0x608000244c20'
terminating with uncaught exception of type NSException
abort() called

Thank you for any help! 感谢您的任何帮助!

Are you using a multi-monitor set-up? 您是否正在使用多显示器设置? Unity Forums think it could be a related issue. Unity论坛认为这可能是一个相关问题。 Seems to be an elusive bug... 似乎是一个难以捉摸的错误...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM