- Home /
LoadScene problem
Hi,
I'm having a problem where the index to load a scene isn't the same as shown in the build settings. For example, to load in the fifth scene, I have to use the index of 3. I always have to use 1 less than what is shown in the editor, and for this reason, I completely lose out on scene 0.
I have tried building it again a few times but nothing has worked.
Is there something I'm missing?
I solved the issue I was having with using names ins$$anonymous$$d of numbers to load a scene. And I feel like the problem was the same for both
Answer by tormentoarmagedoom · Dec 07, 2017 at 04:32 PM
TRy to load the scene by it names and no the number.
Hi,
I tried to do that, but now I'm just getting another error. I have tried it with a few scenes and they don't work
Here are my build settings:
I tried copying and pasting the names of the scenes, so I don't think its a problem of having the wrong name
I solved this problem! I had moved the scenes to another folder and I think thats what was breaking it. All I had to do was delete all the scenes in the build settings, and put them back in and then it worked fine
Your answer
Follow this Question
Related Questions
How do I change scenes from triggers in UNity 2 Answers
Loading Screen? 6 Answers
Loading a level and getting all new gameobjects 1 Answer
Old Scene still visible after Loading new 0 Answers
Loading New Scene & Graphics Problem 0 Answers