- Home /
              This question was 
             closed May 23, 2013 at 12:00 PM by 
             sona.viswam for the following reason: 
             
 
            Duplicate Question
 
               Question by 
               sona.viswam · Feb 07, 2013 at 05:16 AM · 
                c#objectmonodevelopngui  
              
 
              panel hide and show in NGUI
 I have two panels in in ui root. Panel1 and Panel2. 
 Panel2 is deactivated in scene.
 In panel1 i have a play button, that is image button. 
 Clicking on panel1, panel1 should get hide and panel2 should show. 
 In which script and how can i do it?
 Thanks in advance.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by sona.viswam · Feb 12, 2013 at 09:05 AM
 void OnClick(){
   GameObject panel2  = GameObject.Find("Panel2");
   NGUITools.SetActive(panel2,true);       
   GameObject panel1  = GameObject.Find("Panel1");         
   NGUITools.SetActive(panel1,false);
 
 }
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                