Visual Studio not recognising "UnityEngine.SceneManagement"

It seems Visual Studio is not recognising UnityEngine.SceneManagement. No auto prompt appears when I start typing and if I enter everything exactly as shown in the video (i.e. SceneManager.LoadScene{0}, etc) I get compiler errors when trying to run the game in Unity.

Can anyone help with this?

Cheers

I have the same problem. Trying to work through it here: https://stackoverflow.com/questions/42597501/unity-scripts-edited-in-visual-studio-dont-provide-autocomplete
No success yet.

1 Like

I fixed it by, from Visual Studio, going to Tools -> Get Tools and Features… which got me to the Visual Studio Installer and I chose the Unity tools. See attached.

1 Like

Hey thanks @Shuken. I fixed my problem using the link you provided.

I managed to get my script working, but still wasn’t getting the auto-complete to work. Turns out since I had reinstalled Unity I had to go into Edit->Preferences and set the Visual Studio version in there. After that everything worked fine again!

Cheers

1 Like

Great, good to know. Glad you got it working.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms