I have either missed something or have it all confused. I am using 5.3 ( I know, I know) and have incorporated the UnityEngine.SceneManagement and the following occurs. I am able to call on the LevelManager class and get loadScene to work. I see it in the Console messages but the scene does not change. I will paste the images and my code below. Some help would be appreciated.
height=“186”>
Since I can only put in one image you’ll have to take my word for it that I spelled it correctly. I actually have spelled it different ways to see if that was the problem.
here is my script…
`using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class LevelManager : MonoBehaviour {
public float autoLoadNextLevelAfter;
void Start(){
if (autoLoadNextLevelAfter == 0) {
Debug.Log ("Level auto load disabled.");
} else {
Invoke ("LoadNextLevel", autoLoadNextLevelAfter);
}
}
public void LoadScene(string name) {
Debug.Log("New Level load: " + name);
int thisLevel = SceneManager.GetActiveScene().buildIndex;
}
public void QuitRequest() {
Debug.Log("Quit requested");
Application.Quit();
}
public void LoadNextLevel(){
Debug.Log ("auto loaded " + name);
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
}
}
Any help at all would be appreciated.`