- Home /
Question by
mudassar024 · Jan 26, 2014 at 10:40 PM ·
nguihiding
NGUI : UIPanel can't show
I am using this code
void OnClick(){
GameObject panel2 = GameObject.Find("Panel-MainMenu");
NGUITools.SetActive(panel2,true);
GameObject panel1 = GameObject.Find("Panel-Title");
NGUITools.SetActive(panel1,false);
}
OnClick function is attach to a button which is in Panel-Title. When I pressed the Button, Panel-Title is hiding but Panel-MainMenu is not showing.
>UI Root
>Camera
>Anchor
>Panel-MainMenu (Disabled)
>Panel-Title (Enabeld)
Comment
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Shooting at ground 1 Answer
C# Unity Script Examples & Question 2 Answers
How to make enemy AI with NavMesh 2 Answers
Climb ladder 2 Answers