- Home /
Hide/Unhide GUITexture Help!
I have a group of GUITextures that is inside a parent named "Pop_Up_Box" that consists of yes or no option "yes" and "no" has their own GUITexture, and a background Guitexture for the window
All I want to know is that, is there a way to hide all those GUITextures inside the parent "Pop_Up_Box" at the same time?
if yes how can we do it?
Answer by DaveA · Nov 15, 2011 at 05:17 PM
Pseudocode:
function OnGUI()
{
showTextures = GUI.Button (.. "Show GUITExtures"....
if (showTextures)
{
GUITexture(.....
GUITexture(....
etc
}
}
sorry DaveA but what I mean is I want to hide the GUITextures depending on their parent
for example the "yes" and "no" GUITexture ("not a button") are children of the parent "Pop_Up_BOx"
and "correct" and "wrong" GUITexture ("no a button") are children of the parent "Pop_Up_Box2"
what I want to happen is for example(this is just to explain the logic)
void On$$anonymous$$ouseDown() { Pop_Up_Box.enabled = false; }
I want the children of "Pop_Up_Box" to be disabled and hidden from the screen same thing to the "Pop_Up_Box2" I hope you now understand, thank you for your response
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Erroe when resizing GUITextures in C# file 1 Answer
GUITexture is lagging my object 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers