Hello I am a noob, I am trying to load a scene by setting the scene as a variable, with the idea of simply changing the object from the inspector. Here’s what i’m doing.
using UnityEngine;
using UnityEngine.SceneManagement;
public class LoadScene : MonoBehaviour
public Object nextScene;
public void LoadSceneSelect()
{
SceneManager.LoadScene(nextScene.name);
}
(SelectLevel is another scene that I am using to load different levels of the game)
not sure what i am doing wrong, or if this is even possible and i schould just load it by using the name or index.
thank you.