Answers for "scene manager unity"

C#
13

unity load scene

using UnityEngine.SceneManagement;

int buildIndex = 0;
//Load the scene with a build index
SceneManager.LoadScene(buildIndex);
Posted by: Guest on April-18-2020
3

scene manager unity

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);

    }
}
Posted by: Guest on September-28-2020
2

how to change scenes in unity

SceneManager.LoadScene(scenename);
Posted by: Guest on May-27-2020
0

c# scene manager

using UnityEngine;
using UnityEngine.SceneManagement;public class GetActiveSceneExample : MonoBehaviour
{
    void Start()
    {
        Scene scene = SceneManager.GetActiveScene();
        Debug.Log("Active Scene is '" + scene.name + "'.");
    }
}
Posted by: Guest on May-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language