Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity load scene

using UnityEngine.SceneManagement;

//Put this in whenever you want to load a scene
SceneManager.LoadScene("Scene name");
Comment

unity load scene

using UnityEngine.SceneManagement;

int buildIndex = 0;
//Load the scene with a build index
SceneManager.LoadScene(buildIndex);
Comment

load scene unity

using UnityEngine.SceneManagement


public class LoadScene : MonoBehavior
{
	public string sceneToLoad = "Level2";
    
    public void Start()
    {
    	SceneManager.LoadScene(sceneToLoad);
    }
}
Comment

unity how to load up a scene

SceneManager.LoadScene("scene_01");
Comment

unity how to load a scene

SceneManager.LoadScene("Game");
Comment

load scene unity

using UnityEngine.SceneManagement;

    void Start()
    {
        SceneManager.LoadScene(/*the Scene number*/);
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# format string with 2 decimals 
Csharp :: c# run as administrator 
Csharp :: There is already a virtual axis named Horizontal registered. unity 
Csharp :: c# repeat string x times 
Csharp :: .net create ienumerable of strings 
Csharp :: oncollisionenter unity 
Csharp :: how to create a rounded custom panel c# 
Csharp :: c# exit application 
Csharp :: get apps execution path with app name c# 
Csharp :: string to list c# 
Csharp :: c# add item to a lsit 
Csharp :: read configuration workerservice 
Csharp :: axwmp balance c# 
Csharp :: unity particle system playing at the wrong location 
Csharp :: c# list shuffle 
Csharp :: how to find avareage of an array in c# 
Csharp :: turtle graphics face in direction 
Csharp :: c# null check can be simplified 
Csharp :: c# declare inline string array 
Csharp :: Sir W. Arthur Lewis 
Csharp :: remove character from string c# 
Csharp :: unity detect if animation is playing 
Csharp :: how to destroy an object in unity 
Csharp :: how to remove last 3 characters from string in c# 
Csharp :: if cluse in class in vue 
Csharp :: convert string to array c# 
Csharp :: c# calculate difference between two dates in days 
Csharp :: c# retrieve files in folder 
Csharp :: c# winforms textbox cursor position 
Csharp :: C# Console multi language 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =