简体   繁体   中英

How to fix Scene Management unity problem?

SceneManagement

Error

There is suddenly a problem here, I don't know why. the code was working in the past but now it don't

  • It happened when I updated hub

  • I think its because it is not receiving the unityengine.sceneManagement liprary

I tried everything I tried fixing spelling but, nothing works should i update Visual Studio

You probably already have a class called SceneManager, so if a scripts name is called that or anything thats the problem, delate or rename that script. If there is no script with the same name, than try using the full name, replace load scene line with this UnityEngine.SceneManagement.SceneManager.LoadScene(); and for what goes inside the parentheses I am not entirly sure, try doing UnityEngine.SceneManagement.SceneManager.GetActiveScene().name if that doesn't work maybe try the original.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM