- Home /
How to load Scene using it full path
I have several scenes with same name in different paths in project. How can I Load exact scene in runtime?
Answer by Tim-Michels · Nov 09, 2012 at 02:18 PM
First of all, you have to make sure that all your scenes are added to your build settings. You can only load scenes that are added to that list.
Then you should know that Application.LoadLevel has 2 overloads, one that has a string (name of your scene) and one that requires a levelID.
When in your case, you have multiple scenes with the same name, you should NOT use the string method. You can see the levelID in the build settings window, so that way you can load whatever scene you want, without the need to specify the path of your scene.
I would still recommend you to rename your scenes to unique names, just add a number to the name or something like that.
This should cover your question. Please mark answer as accepted if this helped you out.
Greets
Your answer
Follow this Question
Related Questions
Loading in game does not work properly 0 Answers
GUIkit black screen 1 Answer
How can I store and load levels efficiently? 2 Answers
scene loader issue 0 Answers
Storing in PlayerPref based on timer 1 Answer