- Home /
This question was
closed Jul 07, 2014 at 01:00 PM by
meat5000 for the following reason:
The question is answered, right answer was accepted
Question by
Jared 3 · Jun 10, 2011 at 12:27 AM ·
guitogglevisibility
Disappearing GUI
How do I make a GUI disappear when I click it?
Comment
Best Answer
Answer by Holzkohle · Jul 27, 2012 at 09:20 AM
I don't know whether it works, but just try something like this:
function OnGUI () {
if(!Input.GetMouseButton(1)) {
//put your GUI here } }
Answer by henry96 · Jun 10, 2011 at 01:28 AM
try this code : funtion OnMouseUp () {
guiTexture.enabled = false; }
Follow this Question
Related Questions
GUI window popup button 1 Answer
Little help with GUI Toggle needed 1 Answer
EditorGUI elements require minimum size of 24px? 0 Answers
GuiTexture toggle on keypress. 2 Answers
How do I Toggle between alternatives? 3 Answers