3.15 – On Disable

On Disable property is an Action List.

The actions in On Disable Action List, will be triggered when an enabled item’s variableName.setEnabled(false) method called. If you want to disable an item without triggering On Disable Action List just set the enabled field directly with variableName.enabled = false .

To add an action to an item you have to follow three easy steps :

  1. Select the item that you want to add an action
  2. Go to Window -> iGUI -> Actions and click on the desired action. You can see the action added to the item as a component in inspector
  3. Drag the action component in inspector view and drop it over the desired Action List

You can easily configure actions from inspector view. Also you can add more then one action to the Action List.