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 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 :: read text file to string c# 
Csharp :: c# hello world program 
Csharp :: unity rotation between 2 points 
Csharp :: how to make c# open brower 
Csharp :: c# app path 
Csharp :: c# how to run external program 
Csharp :: how do i convert to base64 c# 
Csharp :: how to convert string to guid c# 
Csharp :: how to get ip address in c# 
Csharp :: camera follow 
Csharp :: How to read SQL Server COUNT from SqlDataReader 
Csharp :: how to remove a component from an object in unity 
Csharp :: unity play particle system 
Csharp :: c# get date 
Csharp :: c# count files in directory and subdirectories 
Csharp :: unity quit code 
Csharp :: c# how to simulate mouse click 
Csharp :: c# get directory of executable 
Csharp :: wpf close application 
Csharp :: string to int c# 
Csharp :: resize image c# 
Csharp :: c# length 2d array 
Csharp :: c# change label value into int 
Csharp :: isprime c# 
Csharp :: c# take first 4 characters of string 
Csharp :: unity stop all audio 
Csharp :: taking input in single line c# 
Csharp :: set active text unity 
Csharp :: Join Or Create Room() photon 
Csharp :: set active for a seconds 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =