Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind
I am trying to switch scenes in Unity project
Normally in projects without Noesis, switching scenes is done using following code
However, in the Noesis code behind I am working with, the .CS file doesn't recognize the code
How can I import UnityEngine.SceneManagement directive (or) switch scenes with Noesis in Unity
Normally in projects without Noesis, switching scenes is done using following code
Code: Select all
using UnityEngine.SceneManagement;
SceneManager.LoadScene(1)Code: Select all
using UnityEngine.SceneManagement Re: Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind
Is this in Blend? You can't use anything from Unity in your Blend code.However, in the Noesis code behind I am working with, the .CS file doesn't recognize the codeCode: Select allusing UnityEngine.SceneManagement
Re: Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind
Actually the issue was, instead of opening the code behind file from Unity, I directly opened it in Visual Studio 2022.
I am able to import Scene Management directives when I open the code behind file from inside of Unity (and Unity in turn opens the file in Visual Studio 2022)
I am able to import Scene Management directives when I open the code behind file from inside of Unity (and Unity in turn opens the file in Visual Studio 2022)
Re: Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind
Great! Marking this as solved
Who is online
Users browsing this forum: No registered users and 1 guest