我的游戏在Unity编辑器中完美运行。当构建为独立的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
感谢您的帮助!