- Home /
 
GUI Toggle Using Button Style Remain Active
I have a gui script where a toggle is using a button style, however I want the toggle to appear "clicked" until the player clicks another button notifying them that, that object was selected. I've tried a few things and have looked at some questions but they're asking for something else. Hopefully this is really simple.
               Comment
              
 
               
              Answer by Berenger · Jun 06, 2012 at 05:51 AM
 if( canInteract ) // That's the "until the player clicks another button notifying"
     myBoolean = GUI.Toggle( R, myBoolean );
 else 
     GUI.Toggle( R, true );
 
              Your answer