Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity next level trigger

   //add "using UnityEngine.SceneManagement;" below the "using UnityEngine;" that automatically appears so you can access your scenes
   
   void OnTriggerEnter()
    {
        SceneManager.LoadScene("Nivel 2"); //whatever your level is called goes where I put "Nivel 2"
    }
 
PREVIOUS NEXT
Tagged: #unity #level #trigger
ADD COMMENT
Topic
Name
7+4 =