Component image
The ButtonValueActionTrigger component receives any Button Event and uses it to trigger a Sync Delegate and sends a value to it.
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
- Component:ButtonRelay
- Button Events
- Sync Delegates <- To learn what they are and how to find them.