Greetings,
long story short:
Where to get, or install the “SceneManager?” → UnityEngine.SceneManagement; ?
It seems it is missing on my Installation.
Regards,
Samantha.
Greetings,
long story short:
Where to get, or install the “SceneManager?” → UnityEngine.SceneManagement; ?
It seems it is missing on my Installation.
Regards,
Samantha.
It should be there. It is a built-in API.
Could you please give us more info so we can guess what would be the problem? Example code, exact error message? Do you use assembly definitions?
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class ChangeScene : MonoBehaviour
{
public void ManageScene(int level)
{
SceneManager.LoadScene(level);
}
}
This was one of 4 scripts i am using, and it simply can’t find or won’t show the function, i also typed in:
“using UnityEngine.SceneManagement;” as it could not implement it automaticially.
So you said it is build-in? This will help me alot, i will take a look at it and maybe reinstall unity then, if there is no chance to install it seperately.
Regards and thanks!!
I just reinstalled Unity, the SceneManager or its function is still not there.
How to install it manually?
I downloaded and installed
Version 2022.3.36f1
Fixed it now, my reinstalling it a 3rd time, updating Visual Studio and applying visual studio to unity in the settings again.
Why it diddn’t work before i have no idea.
If you were just seeing the error in your IDE (and not from within Unity itself), then most likely it is just an intellisense failure, which is incredibly common.
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.
Barring all that, move on to other ideas:
https://discussions.unity.com/t/778503
Also, try update the package inside of Unity: Window → Package Manager → Search for Visual Studio Editor → Press the Update button
Depending on flavor and version of Visual Studio, it may also have an installation step that you perform within the actual Visual Studio. This step seems finicky at best and may require multiple openings of VS before it comes up.
Update: The VSCode extension has been deprecated and abandoned:
https://discussions.unity.com/t/886480
Update: the VSCode integration is back… maybe!?
https://discussions.unity.com/t/925353
There may be a community fork available that is receiving updates.
https://github.com/Chizaruu/com.tsk.ide.vscode
Also, this: https://discussions.unity.com/t/805330/7
Recently (July 2023) I worked on a Windows11 system that required a Microsoft component to be installed from within Visual Studio before it would work properly with all the OTHER software installed under Unity. I have no documentation on that process as I have only seen it once and it surprised me as well.