Hello there people I have been working on a Unity project that I’m really excited about. I’ve been making different rooms in different scenes only problem is…I have no idea on how to make a character walk through a doorway or make collision with a portal or cube and end up in one of my other scenes. I have been working with unity for about 3 years now and yet all the tutorials and scripts i’ve found don’t work. I’m using the Unity MMORPG controller you know the free viking guy? Please help me out guys anyway possible
To do this, you have to first go to the Build Settings window from the File Menu. Here you can drag the scenes you have from your Project window and note the ID number provided for each scene.
Then you can put the following code anywhere in the script to switch from one scene to another.
Application.LoadLevel(1);
The ‘1’ in the code above must be changed to the scene’s ID that you would like to switch to.
Hope this helps and good luck for you project.