Application.LoadLevel is obsolete

Did anyone else notice that if If you have the most current version of Unity nothing happens after the 5th guess? I has an error message saying

Application.LoadLevel(string) is obsolete: ‘Use SceneManager.LoadScene’

After doing a quick google search I found the solution online. Use:

//at the top of the code
using UnityEngine.SceneManagement;
//inside void NextGuess
SceneManager.LoadScene(“Win”, LoadSceneMode.Additive);

Please correct me if I am wrong or if there was some other issue in my code

2 Likes

A search of these forums before posting will reveal multiple posts on this and this is why it states use the version that they are using in the course not the most up to date one.
There is a nice post in this thread below where @Rob posted an explaination.

2 Likes

Privacy & Terms