3.13 – On Init

On Init property is an array of iGUI Actions. We will call On Init, On Mouse Over etc. properties as Action List in the rest of the documentation.

The actions in On Init Action List, will be triggered every time an element initializes. For example when a scene is loaded or when the container of the element is refreshed On Init Action List will be triggered.

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.