- Home /
Change from one scene to another
How can i use an object or certain area to move from one scene to another, and to be able to go back to the previous scene almost like entering buildings, caves, different worlds, maps ect.
Answer by Joshua · Mar 11, 2011 at 03:17 AM
Application.LoadLevel(NUMBEROFTHELEVEL) is the piece of code you use to go to a certain scene. Go to your build settings to assign numbers to the scenes.
To make something trigger this, make for instance the door a trigger and then put OnTriggerEnter in your code.
Your answer
Follow this Question
Related Questions
Best way for creating a high quality world map 0 Answers
How to move the world/scene not the player - or not? 1 Answer
How do I display two scenes at once 1 Answer
Updating main menu using PlayerPrefs when collecting an object in different scene (level) 1 Answer
Unity seems to be taking a long time destroying a scene? 0 Answers