Unity csharp how to restart the level

Code Example - Unity csharp how to restart the level

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

restart level unity

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

Related code examples