12 Days Ago
Bugfix: Prevent game-object pooling if done mid-scene switch - When MonoBehaviours are being destroyed due to scene switch, it can cause an invalid transform hierarchy modification, causing an error MonoBehaviors can clean up their resources in OnDisable, which can cause them to be pooled - example: AmbienceWaveSounds. Tests: validated it doesn't affect entity pool warmup sequence (as we create->retire there). Using `log.level Audio 2` and a bit of 100% code-forcing the issue, disconnected 3 times: - without the fix, it was 100% generating an error on disconnected - with the fix, had 0 error reports