Question by 
               MilanCREEPERPOWER · Feb 11, 2021 at 08:02 AM · 
                c#scenescene-loading  
              
 
              Scene not loading on build but on editor it does.
Hello there!
 I'm making a game but the next level is not loading.
I added it to the build settings and this is my code.
     void Update()
     {
         cakeAmount.text = "Cakes: " + CAKES + "/"  + (GameObject.FindGameObjectsWithTag("Cake").Length + CAKES);
         if (cAMA >= 1)
         {
             if (CAKES == cAMA)
             {
                 if (NextLevelWhat != 69) 
                 {
                     Application.LoadLevel("SampleScene" + NextLevelWhat);
                 } else
                 {
                     Application.LoadLevel("WIN");
                 }
 
             }
         }
       
     }
It loads in the editor but not when the game is build in the executable. There also are no errors.
BEFORE YOU ASK: yes i also tried SceneManager.LoadScene
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Fade out / fade in scene w/ loading screen 0 Answers
[SOLVED]Problems loading the scene 1 Answer
Instantiate after loading scene 0 Answers
Cannot interact with new scene 0 Answers
How do i create a scene variable? 3 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                