Generic LoadScene

I did a more generic Scene Changer thing - As Rick said, if we’re going to be changing or adding scenes in we can’t really assume that the next index is something that we necessarily want to go to.

   public void LoadScreen(string nextSceneName)
    {
        SceneManager.LoadScene(nextSceneName);
    }

Capture

Then we can just put the name of the scene we want to go to in the Button OnClick() thing

Sid

Thanks for sharing your code. This would definitely be a helpful solution as we make more complicated game paths! Maybe default could be next scene, with this option to over-ride.

1 Like

Privacy & Terms