Component:ButtonValueActionTrigger

From Resonite Wiki
Revision as of 15:21, 11 November 2024 by 989onan (talk | contribs) (Add info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Button Value Action Trigger`1 component as seen in the Scene Inspector

The ButtonValueActionTrigger component receives any Button Event and uses it to trigger a Sync Delegate and sends a value to it.

Fields

Fields
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`1<T> triggers while sending Value when this component receives a Button Event of type OnPressed.
OnPressing Action`1<T> triggers while sending Value when this component receives a Button Event of type OnPressing.
OnReleased Action`1<T> triggers while sending Value when this component receives a Button Event of type OnReleased.
Value T The value to send to any OnPressed, OnPressing, and/or OnReleased.

Usage

Attach to a slot with a button, or a slot targeted by a Component:ButtonRelay or related. Then, find a Sync Delegate to trigger using this component. Lastly, put the sync delegate into any OnPressed, OnPressing, and/or OnReleased; then provide Value

Examples

See Also