- Home /
Gui in Gui Not Working ?
Hello guys i want to gui in gui but notworking this scripts.
Don't see 2 gui.
My Codes ;
function WindowFunction (windowID : int) {
if (GUI.Button (new Rect (25, 25, 100, 30), "Click Me")) {
if (GUI.Button (new Rect (25, 25, 100, 30), myTexture)) {
print("clicked"); // show this gui button.
}
}
Please help me.
Best regards.
Comment
Answer by whydoidoit · Jul 26, 2012 at 12:16 AM
You would only see the textured button if the outer button was held down. If you want a picture and text in the same button then you should use a GUIContent.
Your answer
Follow this Question
Related Questions
GUI Window problem 2 Answers
Screen.width and Screen.height does not cover screen. Why? 4 Answers
GUI Window on GameObject location? 1 Answer
Stop clicking through a GUI window 2 Answers