- Home /
 
               Question by 
               firebird127 · Dec 22, 2018 at 04:43 AM · 
                scene-loadingbutton trigger eventsasyncloadlevelasyncscene change  
              
 
              Holding SceneManager.LoadSceneAsync until a button has been pressed?
Hey guys,
Im having trouble trying to figure out how to transition from a loading scene to my main scene after the press of a button. Right now i have a loading scene which contains a minigame. During this minigame, my next scene is called in the SceneManager.LoadSceneAsync function in the background. Is there anyway to process the function but hold the scene transition until a button is pressed? Thanks any advice is much appreciated :)
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by hexagonius · Dec 22, 2018 at 10:35 AM
Yes, there is a way:
https://docs.unity3d.com/ScriptReference/AsyncOperation-allowSceneActivation.html 
Thank you for referring me to this page! helped out a lot!
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                