Good day to all. There was a problem: I made buttons on two scenes so that you can move between them . They worked and I forgot about them . But then I climbed somewhere and everything flew to hell.
The using UnityEngine.SceneManagement used, and the SceneManager.LoadScene("...") writes "The Scene manager does not contain a definition for Load ." I write to SceneManager , put a SceneManager stop and there’s nothing on L at all. Although before that everything worked.
I Don'tDestroyOnLoad(gameobject) somewhere in the teams Don'tDestroyOnLoad(gameobject) . MB it somehow spoiled it. In general, I do not know, I almost did the first project, and here it is ... Tell me who can.
An interesting point : if I create a new project and try to write SceneManager.LoadScene("...") , then everything works, and if I transfer the script from the "problem" project, then the same problem manifests itself.
Script code:
using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; public class quality: MonoBehaviour { void OnMouseDown() { switch (gameObject.name) { case "Bad": QualitySettings.currentLevel = QualityLevel.Fastest; break; case "Norm": QualitySettings.currentLevel = QualityLevel.Simple; break; case "Good": QualitySettings.currentLevel = QualityLevel.Fantastic; break; case "Back": SceneManager.LoadScene("1ая игра норм"); break; } } } 
SceneManager.LoadScene? Comp, unity rebooted? ... maybe it's in the encoding or that instead of an English letter, a Russian (or some other) started somewhere and try to rewrite the script / problem area - Alexey Shimanskyusing UnityEngine;using System.Collections; using UnityEngine.SceneManagement; public class quality : MonoBehaviour { void OnMouseDown () {switch (gameObject.name) { case "Bad":QualitySettings.currentLevel = QualityLevel.Fastest; break; case "Norm":QualitySettings.currentLevel=QualityLevel.Simple; break; case"Good":QualitySettings.currentLevel= QualityLevel.Fantastic; break; case"Back":SceneManager.LoadScene("1ая игра норм");break;}}}using UnityEngine;using System.Collections; using UnityEngine.SceneManagement; public class quality : MonoBehaviour { void OnMouseDown () {switch (gameObject.name) { case "Bad":QualitySettings.currentLevel = QualityLevel.Fastest; break; case "Norm":QualitySettings.currentLevel=QualityLevel.Simple; break; case"Good":QualitySettings.currentLevel= QualityLevel.Fantastic; break; case"Back":SceneManager.LoadScene("1ая игра норм");break;}}}- Alexander