1
NGUI 3 Support / Hiding All NGUI elements/panel when background/non NGUI objects are selected
« on: January 25, 2015, 09:59:44 PM »
Hello NGUI Forum,
I am having trouble hiding my current NGUI panel when I click on the background. I wish to hide it back I select the background of my game.
Example, when I have a "Tower Defense" game Tower selected, it would show a couple of buttons around it. I am trying to hide the buttons if I select the road or anything else that does not require a GUI. I currently have the GUIs hiding/showing on each other but when I select the road, the GUI wont go away.
I tried to research a bit but only came upon the raycast function but did not get much success with it. I believe it required all objects to be physical? Not to sure.
What method do you currently use or maybe supply a direction for me to try.
I would greatly appreciate it.
Thanks,
Felix
I am having trouble hiding my current NGUI panel when I click on the background. I wish to hide it back I select the background of my game.
Example, when I have a "Tower Defense" game Tower selected, it would show a couple of buttons around it. I am trying to hide the buttons if I select the road or anything else that does not require a GUI. I currently have the GUIs hiding/showing on each other but when I select the road, the GUI wont go away.
I tried to research a bit but only came upon the raycast function but did not get much success with it. I believe it required all objects to be physical? Not to sure.
What method do you currently use or maybe supply a direction for me to try.
I would greatly appreciate it.
Thanks,
Felix

