BigRedWolfy (talk | contribs) No edit summary |
m type not types |
||
Line 7: | Line 7: | ||
}} | }} | ||
== Intoduction == | == Intoduction == | ||
The '''ButtonActionTrigger''' component is used for triggering C# [[:Category:Types:Action|actions]] (not to be confused with [[:Category: | The '''ButtonActionTrigger''' component is used for triggering C# [[:Category:Types:Action|actions]] (not to be confused with [[:Category:Type:Impulse|impulses]]) using [[Button (Component)| UIX Buttons]] or [[NeosButton (Component)|Resonite buttons]]. | ||
It must be a child of the same slot as a button in order to be bound to it. | It must be a child of the same slot as a button in order to be bound to it. |
Revision as of 18:20, 18 January 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Intoduction
The ButtonActionTrigger component is used for triggering C# actions (not to be confused with impulses) using UIX Buttons or Resonite buttons.
It must be a child of the same slot as a button in order to be bound to it.
Usage
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. |
OnPressed
|
Action | Triggered when the button is pressed |
OnPressing
|
Action | Triggered when the button is pressed, before the OnPressed event
|
OnReleased
|
Action | Triggered when the button is released |
Behavior
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
)