Restarting a scene with SceneManager
I'm trying to restart my level whenever the player looses: But when I restart the scene I get an excess scene that is loading and additionally I get an unloaded scene for each time I play the scene.
I can remove all unloaded scenes in the hierarchy, but I can't remove the loading scene. This is annoying because I cannot edit and save SampleScene. Clearly I am not restarting the scene properly. Anyone know what I'm doing wrong?
Answer by tormentoarmagedoom · May 06, 2019 at 11:42 AM
HEllo!
Try without specify LoadSceneMode, just do
LoadScene(Scene)
I mean, do not need to specify the LoadScene mode.
Good luck!
Bye!
Unfortunately this didn't work because LoadScene$$anonymous$$ode is Single by default.
Your answer
Follow this Question
Related Questions
Why is my scene not loading? 2 Answers
How to make a main menu like that ? 1 Answer
Right Click Load Scene help! 1 Answer
"void" error in SceneManager Script 1 Answer
Save and load scene from file 2 Answers