My game works perfectly fine in the Unity editor. When building to standalone macOS, every scene works, except my main game loop, it crashes with this error.
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!