Search Unity

Disabling GUI components ?

Discussion in 'Scripting' started by webco, Dec 2, 2010.

  1. webco

    webco

    Joined:
    Sep 2, 2010
    Posts:
    85
    When I display a dialog box with the GUI.Window, how can I disabled the components behind (buttons for example) to avoid interaction (click, hover, etc) with these components ?
     
  2. Nikolay116

    Nikolay116

    Joined:
    Mar 21, 2010
    Posts:
    421
    introduce some bools and write conditions
     
  3. webco

    webco

    Joined:
    Sep 2, 2010
    Posts:
    85
    Yes, but how can I disabled the state hover of a button ?
     
  4. webco

    webco

    Joined:
    Sep 2, 2010
    Posts:
    85
    Ok, I've found how to do with the parameter GUI.enabled :)