(Redirected from ButtonActionTrigger (Component))
Component image 
ButtonActionTrigger component as seen in the Scene Inspector

The ButtonActionTrigger component is used for triggering C# actions (not to be confused with impulses) using the Interface IButton, such as UIX Buttons or Legacy Buttons.
This component must be on the same slot as the button in order to be bound to it.
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
OnPressed
|
delegate of identity Action | Triggered when the button is pressed |
OnPressing
|
delegate of identity Action | Triggered when the button is pressed, before the OnPressed event
|
OnReleased
|
delegate of identity Action | Triggered when the button is released |
Usage
This component allows you to trigger actions on some special components, such as the Random Object Spawner component, by dragging the reference to the target action into a trigger slot (such as OnPressed
).