Scene Load/Unload Fails to Reload
StartGame - LoadScene(X, Additive)
Teleporter 1 - LoadScene(Y, Additive)
sceneLoaded callback triggers - Teleport player to Y, UnloadSceneAsync(X)
Teleporter 2 - LoadScene(X, Additive)
sceneLoaded callback triggers - Attempt to teleport player to X, UnloadSceneAsync(Y)
Scene is not loaded, player falls through the world.
It seems that once I've unloaded a scene, when I try to load it again, it fails.
Ideas?
I can see the first scene loaded in the hierarchy. Then I see it removed, and the second scene is in the hierarchy. Then on step 4, the transporter back, the first scene does not show up in the hierarchy and the second scene disappears so I fall forever.. I've tried reversing it, and the same behavior happens.
Answer by sarynth · Jun 06, 2017 at 01:28 AM
I didn't remove the sceneLoaded callback from step 3, so step 5 fired both callbacks, and unloaded both scenes. Resolved!