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);
}
}
using UnityEngine;
using UnityEngine.SceneManagement;public class GetActiveSceneExample : MonoBehaviour
{
void Start()
{
Scene scene = SceneManager.GetActiveScene();
Debug.Log("Active Scene is '" + scene.name + "'.");
}
}