Question by 
               Derpybunneh · May 10, 2016 at 07:51 AM · 
                c#scenescene-loading  
              
 
              [SOLVED] How to load next level?
Solved this with this code - hopefully it is helpful to anybody!
 void OnTriggerEnter2D (Collider2D col) {
         if (col.CompareTag ("Player")) {
             //Load next scene
             print ("Collided!");
             SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
         }
     }
Hello! So I am trying to load the next level in my game. And I am wondering, how should I do this? After 5.3 the code for doing this is different. So far I have:
 void OnTriggerEnter (Collider other) {
         if (other.CompareTag ("NextL")) {
             
         }
     }
For some reason, the coding for this has gotten a lot more complicated.
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Scene not loading on build but on editor it does. 0 Answers
How do i create a scene variable? 3 Answers
Cannot interact with new scene 0 Answers
Script is detecting input with ZERO actions 0 Answers
Get current scene number 3 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                