- Home /
GUI clean last frame
Hi guys!!
I'm having a problem with GUI, when I disable an object and instansiate other (with his own gui) this show me in the background the gui of the first object...the gui in the background is disable, It looks like the last frame of the gui that can not be cleaned. What can i do?
Answer by Kamuiyshirou · May 01, 2014 at 03:23 AM
Apparently the GUI-System works like a state machine. So if I want to disable a button/textfield
I simply do:
GUI.enabled = false;
GUI.TextField(...);
GUI.enabled = true;
I alredy try with a flag but dont work, my flag is changed from a GUI.window. And my new gui is in another object, not in the same.
Dont work :C, this disable de GUI, but I can see the disable GUI in the back.
I realize that if i call the new object inside the GUI function works well!!! but if i call the new object from a window (window called inside GUI function) show me the last frame of the old GUI...
Your answer
Follow this Question
Related Questions
gui elements to clo 1 Answer
Edit the color/properties of Gui border 0 Answers
Display text on each side of cube 0 Answers