Apparently, I’m making a main menu and I want to load the scene when the players press the Start button. However, when I referred to SceneManager, the console said it doesn’t exist in the current context (I use Unity 4.7.2 by the way)
Here’s my script
using System.Collections;
public class LoadSceneOnClick : MonoBehaviour {
public void LoadByIndex (int sceneIndex)
{
SceneManager.LoadScene (sceneIndex);
}
}