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

unity scene load



    SceneManager.LoadScene("SceneName", LoadSceneMode.Additive); //Loading the new scene
    SceneManager.UnloadSceneAsync(val); // Unloading current scene


Comment

load scene unity

using UnityEngine.SceneManagement;

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

PREVIOUS NEXT
Code Example
Csharp :: unity create random string 
Csharp :: c# print hello world 
Csharp :: c# random float between two numbers 
Csharp :: c# open web page in default browser 
Csharp :: unity how to convert mouse screen position to world position 
Csharp :: c# replace all non numeric characters 
Csharp :: convert to base64 c# 
Csharp :: how to check the tag of a collider in unity 
Csharp :: c# get pc ip address 
Csharp :: simple reset transform.rotation c# 
Csharp :: void on trigger enter 2d 
Csharp :: how t remove a component in unity 
Csharp :: read in multiple numbers c# 
Csharp :: get self component in unity 
Csharp :: how to set the fps in monogame 
Csharp :: c# linq extension methods left join 
Csharp :: base64 to image c# 
Csharp :: dotnet get directory of executable 
Csharp :: unity change sprite source image 
Csharp :: unity reload current scene 
Csharp :: unity textmesh pro 
Csharp :: replace text c# file 
Csharp :: dotnet dev-certs https --clean 
Csharp :: c# main method 
Csharp :: c# get first 5 characters of string 
Csharp :: c# counting lines 
Csharp :: oncollisionenter unity 
Csharp :: unity c# set list to set active true 
Csharp :: json property annotation c# 
Csharp :: c# write text before user input 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =