I have LoadLevelAsync loading a scene in the background, but if a different scene is selected I would like the async to be cancelled, any way to do this? Here’s the code to load the level in the background:
Hey zigglr,
As far as I know there is no way to cancel the scene loading. I think there are two options for you:
Load the scene not before the user selected the right scene he want to so you don’t need to do any cancellation.
Load the new Scene as AsyncAdditive and put everything from the new scene under an empty GameObject. If the user don’t need the new loaded scene you can throw the whole new scene away by Deleting the GameObject.
Greetings, René