- Home /
 
               Question by 
               williamsokol12 · Apr 08, 2017 at 07:22 AM · 
                build settings  
              
 
              won't acknowledge scene in build settings, but will load it
so i have it where it'll load the scene if a button is pushed, but I also wanted to find the about to be loaded scenes build settings index number. here a piece of the code:
public void LevelClicked(Button button) {
     levels = SceneManager.GetSceneByName("Level 1").buildIndex;
     print(levels);
     SceneManager.LoadScene(button.name);
     
 }
in this case is prints levels as -1 even though the scene (button.name) will load
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Error Building Web Player 4 Answers
Why such a big FPS difference? 1 Answer
Custom .assets files in the built "Project"_Data folder 0 Answers
Build and Run on Android not working 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                