Q:

c# scene manager

using UnityEngine;
using UnityEngine.SceneManagement;

public class ExampleScript: MonoBehaviour
{
     public string Scene; // Put int the Name of the scene you want to load :)
     // Active when the game/app starts :)
    void Start()
    {          
    SceneManager.LoadScene(Scene);

    }
}
0
using UnityEngine;
using UnityEngine.SceneManagement;public class GetActiveSceneExample : MonoBehaviour
{
    void Start()
    {
        Scene scene = SceneManager.GetActiveScene();
        Debug.Log("Active Scene is '" + scene.name + "'.");
    }
}
0

New to Communities?

Join the community