Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to change loaded scene in unity

using UnityEngine;
using UnityEngine.SceneManagement;//Add this library first

public class Example : MonoBehaviour
{
    void Start()
    {
	//Here you put exact name of scene you want to load instead of "Level_2"
        SceneManager.LoadScene("Level_2");
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: fill all array c# with same value 
Csharp :: c# append multiline textbox 
Csharp :: unity set material 
Csharp :: C# .net core convert to int round up 
Csharp :: how to map datatable to list in c# 
Csharp :: c# bcrypt 
Csharp :: c# countdown timer menutes 
Csharp :: c# string default value 
Csharp :: jarray to list c# 
Csharp :: c# combine list of bool 
Csharp :: print array in c# 
Csharp :: shuffle arraylist c# 
Csharp :: C# .net core convert string to enum 
Csharp :: how to copy last element in list c# 
Csharp :: deserialize object to dictionary c# 
Csharp :: read folder c# 
Csharp :: error provider c# 
Csharp :: movement unity 
Csharp :: c# find process by name 
Csharp :: 2d list in c# 
Csharp :: randomm number from 2 different ranges 
Csharp :: dialog box with form flutter 
Csharp :: write line to file c# 
Csharp :: c# entity framework group by 
Csharp :: system.windows.forms not found 
Csharp :: c# string contains any of list 
Csharp :: last two characters of string c# 
Csharp :: c# contains 
Csharp :: Throw index out of range C# 
Csharp :: Net.ServicePointManager.SecurityProtocol .net framework 4 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =