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]].
The '''ButtonActionTrigger''' component is used for triggering C# [[Type:Action|actions]] (not to be confused with [[Type:Impulse|impulses]]) using [[Button (Component)| UIX Buttons]] or [[LegacyButton (Component)|Legacy 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.
Line 17:
Line 17:
}}
}}
== Behavior ==
== Behavior ==
This component allows you to trigger [[:Category:Types:Action|actions]] on some special components, such as the [[RandomObjectSpawner (Component)| Random Object Spawner component]], by dragging the reference to the target action into a trigger slot (such as <code>OnPressed</code>)
This component allows you to trigger [[Type:Action|actions]] on some special components, such as the [[RandomObjectSpawner (Component)| Random Object Spawner component]], by dragging the reference to the target action into a trigger slot (such as <code>OnPressed</code>)
== Examples ==
== Examples ==
== Related Components ==
== Related Components ==
Revision as of 18:34, 18 January 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
ButtonActionTrigger component as seen in the Scene Inspector
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)