Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Unity c# how to restart the level


void RestartLevel() //Restarts the level
{
  	SceneManager.LoadScene(SceneManager.GetActiveScene().name); 
}
Comment

restart level unity


void RestartLevel() //Restarts the level
{
  	SceneManager.LoadScene(SceneManager.GetActiveScene().name); 
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to change the color of an object in unity c# 
Csharp :: vue.createapp is not a function 
Csharp :: how to remove a component from an object in unity 
Csharp :: c# for each textbox lines 
Csharp :: c# preprocessor if not 
Csharp :: Uncaught TypeError: $(...).validate is not a function 
Csharp :: unity to integer 
Csharp :: set width of rect transform unity 
Csharp :: convert base64 string to string c# 
Csharp :: unity enable gameobject 
Csharp :: c# char to int 
Csharp :: how to get the startup path in console app 
Csharp :: randomize through array in C# 
Csharp :: get program path c# 
Csharp :: unity color set alpha 
Csharp :: C# previous method 
Csharp :: c# list string initialize inline 
Csharp :: random from list c# 
Csharp :: remove all non number in c# 
Csharp :: c# read file into a string 
Csharp :: c# current thread id 
Csharp :: How to read StreamReader text line by line 
Csharp :: unity stop all audio 
Csharp :: C# console app how to run another program 
Csharp :: how to choose a random child in a gameobject unuity 
Csharp :: public vs internal c# 
Csharp :: how to store more precise data then double c# 
Csharp :: get all assemblies c# 
Csharp :: unity check if audio playing 
Csharp :: typeahead causing validation error asp 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =