- Home /
 
               Question by 
               Jude945 · May 24, 2018 at 11:23 PM · 
                gameobjectscript.activekeypress  
              
 
              How do I change a gameobject to be active through a script?
I made a key press system to open a menu and it works but I don't know how to set the menu object as active in the script.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by K_Tec · May 24, 2018 at 11:27 PM
YourGameObject.SetActive(true); to enable it YourGameObject.SetActive(false); to disable it
Have a good time :)
it gives and error under Options$$anonymous$$enu
I used Option$$anonymous$$enu.SetActive(true);
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                