Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Unity c# how to restart the level


void RestartLevel() //Restarts the level
{
  	SceneManager.LoadScene(SceneManager.GetActiveScene().name); 
}
 
PREVIOUS NEXT
Tagged: #Unity #restart #level
ADD COMMENT
Topic
Name
9+5 =