I am trying to load my level in my game and I am getting the following error
UnityEngine.Application.LoadLevel(int)' is obsolete
Answer by HenryStrattonFW · Jul 14, 2016 at 01:02 PM
This means that in the version of Unity you are using, the method of loading a scene by using its index in the scene list is no longer supported, instead you should load scenes by their name.
eg. Application.LoadLevel("MyScene");
This is always a better solution in my opinion anyway as referencing things by index makes it unclear in code what scene is being loaded, and can break if you then add, remove, or reorder scenes within the scene list.
Answer by Anas173 · Jul 14, 2016 at 01:16 PM
Unity created a new sceneManager class.
To access it and use it add the namespace above Using unityEngine.sceneManager
After that say application.scenemanager (urScene)
Your answer
Follow this Question
Related Questions
Singleton GameManager with DontDestroyOnLoad acting weird 0 Answers
How do I reset my game but keep the Player in the same position? 1 Answer
SteamVR_LoadLevel() freezes when done loading in builds only 1 Answer
I'm having trouble getting my "Restart" button to work 2 Answers
Problem with Application.LoadLevel 0 Answers