naga.1990
Topic Author
Posts: 2
Joined: 11 Feb 2025, 05:54

Unable to import UnityEngine.SceneManagement in Unity Noesis Code Behind

11 Feb 2025, 21:19

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
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

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

12 Feb 2025, 15:29

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.
 
naga.1990
Topic Author
Posts: 2
Joined: 11 Feb 2025, 05:54

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

13 Feb 2025, 19:55

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)
 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

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

18 Feb 2025, 18:15

Great! Marking this as solved

Who is online

Users browsing this forum: No registered users and 1 guest