How to load scene that is called on?

I was following along with some Udemy videos on how to make a Number Wizard game but the version they use in the videos is earlier than the version I’m using, which is the latest. Where they use…

Application.LoadLevel(“SceneName”);

I have to use

SceneManager.LoadScene

though my question is that every time I put a value inside of the parentheses after calling to load a scene, it only loads the scene I have scripted.

ex. If I type SceneManager.LoadScene(1); every time I click on a button in my game, it will only load scene 1 and nothing else. I have the script correct but when I press a button to go to scene 2, I need the game to go to scene 2 and not scene 1.

So , if I got your question right, you can either script the button to take the scene you want or keep track of which scene is next with a variable and use that to load your next scene?
Pretty sure there’s still an option to load by name(string), too, if that was part of your question.

Another thing is the scene needs to be added to build settings.

Of course, that, too :slight_smile: