Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity next scene

//For C# in unity
UnityEngine.SceneManagement;
....
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
Comment

unity next scene



using UnityEngine.SceneManagement;

int currentSceneIndex = SceneManager.GetActiveScene().buildIndex; 
if(currentSceneIndex<SceneManager.sceneCount-1)
{
    SceneManager.LoadScene(currentSceneIndex + 1);
}


Comment

PREVIOUS NEXT
Code Example
Csharp :: c# get desktop path 
Csharp :: oncollisionenter is declared but never used 
Csharp :: c# minimize form 
Csharp :: how to load the active scene unity 
Csharp :: c# change label forecolor code 
Csharp :: c# print hello world 
Csharp :: c# random number between 1 and 100 
Csharp :: how to get a list of processes c# 
Csharp :: c# create a text file 
Csharp :: how to check the tag of a collider in unity 
Csharp :: .net core temp directory 
Csharp :: unity get all by tag 
Csharp :: how to stop window from terminating c# visual studio 
Csharp :: how to print a variable in c# with text 
Csharp :: unity mirror get ip address 
Csharp :: restclient basic auth c# 
Csharp :: c# list to string 
Csharp :: C# get all child classes of a class 
Csharp :: c# datagridview clear all rows 
Csharp :: wpf close application 
Csharp :: c# int input 
Csharp :: unity c# get bool from another script 
Csharp :: c# count number of occurrences in string 
Csharp :: move in the direction that player is facing unity 
Csharp :: how to lock and hide the cursor unity 
Csharp :: get host ip address asp.net core 
Csharp :: c# run as administrator 
Csharp :: how to get executable path in wpf 
Csharp :: website link in unity 
Csharp :: unity gameobject.find not working 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =