Answers for "unity scenemanager loadscene"

C#
25

unity load scene

using UnityEngine.SceneManagement;

//Put this in whenever you want to load a scene
SceneManager.LoadScene("Scene name");
Posted by: Guest on March-23-2020
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
2

unity scenemanager loadscene

using UnityEngine;
using UnityEngine.SceneManagement;

public class ExampleClass : MonoBehaviour
{
    void Start()
    {
        SceneManager.LoadScene("OtherSceneName", LoadSceneMode.Additive);
    }
}
Posted by: Guest on February-20-2021
1

scenemanager.loadscene

SceneManager.LoadScene(scenename);
Posted by: Guest on March-02-2021

C# Answers by Framework

Browse Popular Code Answers by Language