Page 1 of 1

Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind

Posted: 11 Feb 2025, 21:19
by naga.1990
I am trying to switch scenes in Unity project

Normally in projects without Noesis, switching scenes is done using following code
using UnityEngine.SceneManagement; 
SceneManager.LoadScene(1)
However, in the Noesis code behind I am working with, the .CS file doesn't recognize the code
 using UnityEngine.SceneManagement 
How can I import UnityEngine.SceneManagement directive (or) switch scenes with Noesis in Unity

Re: Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind

Posted: 12 Feb 2025, 15:29
by jsantos
However, in the Noesis code behind I am working with, the .CS file doesn't recognize the code
 using UnityEngine.SceneManagement 
Is this in Blend? You can't use anything from Unity in your Blend code.

Re: Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind

Posted: 13 Feb 2025, 19:55
by naga.1990
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)

Re: Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind

Posted: 18 Feb 2025, 18:15
by jsantos
Great! Marking this as solved