|
Post by Christian on Nov 17, 2021 12:38:30 GMT
Hi,
I have a bootstrap scene that contains my MasterAudio game object. Then I load my game scene additively. When I unload my game scene, I get the following exception as MasterAudio tries to access an already deleted object:
MissingReferenceException: The object of type 'SphereCollider' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. TransformFollower.RecalcClosestColliderPosition (System.Boolean forceRecalc) (at Assets/Plugins/DarkTonic/MasterAudio/Scripts/Utility/TransformFollower.cs:291) DarkTonic.MasterAudio.MasterAudio.RecalcClosestColliderPositions () (at Assets/Plugins/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:1336) DarkTonic.MasterAudio.MasterAudio.ManualUpdate () (at Assets/Plugins/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:1234) DarkTonic.MasterAudio.MasterAudio.LateUpdate () (at Assets/Plugins/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:1221) Is there a way to clean up MasterAudio upon scene unloading?
Thanks, Christian
|
|
|
Post by DarkTonic Dev on Nov 17, 2021 16:01:18 GMT
Some null checks might solve the issue, however I would need to be able to reproduce the error on my end first. Please send me an example Scene as I'm not able to reproduce this.
Thanks, -Brian
|
|