Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

loadscene unity

using UnityEngine;
using UnityEngine.SceneManagement;

public class Singleplayer : MonoBehaviour
{
    public void LoadNextLevel()
    {
    	//This will load the next scene in the buildIndex, e.g if in scene 3, go to scene 4
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex +1);
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity url 
Csharp :: random.range unity 
Csharp :: unity text display int 
Csharp :: c# add item to a lsit 
Csharp :: c# windows application get current path 
Csharp :: c# create datatable 
Csharp :: windows forms iterate through all controls 
Csharp :: stock span problem c# 
Csharp :: how to usefor loop in c# 
Csharp :: c# string to uri 
Csharp :: unity system time 
Csharp :: wpf make both rich Text scroll 
Csharp :: Warum wächst Weizen besonders gut in den Steppen? 
Csharp :: validate base64 string c# 
Csharp :: how to draw over label C# 
Csharp :: unity camera follow 
Csharp :: c# add 1 
Csharp :: c# get binary array from int 
Csharp :: c# get files of type in directory 
Csharp :: how to add b to a string in java 
Csharp :: c# datetime get number of week 
Csharp :: dictionary c# 
Csharp :: how to remove raycast on a button unity 
Csharp :: c# console play sound 
Csharp :: how to write a variable in console c# 
Csharp :: querymultiple dapper c# 
Csharp :: c# delay 
Csharp :: c# read text file separated by comma 
Csharp :: invert string c# 
Csharp :: SAVE FLOAT UNITY 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =