Component:ButtonRelay: Difference between revisions

From Resonite Wiki
This is no longer a stub. Added description, added field descriptions, added usage description.
Why would this send to a node lol?
Line 7: Line 7:
}}
}}


The '''ButtonRelay''' component sends a signal (and optionally with a [[Value Type]]) to a button event handler (usually something internal like a [[ProtoFlux:Method Proxy|Method Proxy]]).
The '''ButtonRelay''' component sends a signal (and optionally with a [[Value Type]]) to a button event handler (usually something internal like a [[Sync Delegate]]).


<!--T:2-->
<!--T:2-->

Revision as of 15:10, 11 November 2024

Component image 
Button Relay component as seen in the Scene Inspector


The ButtonRelay component sends a signal (and optionally with a Value Type) to a button event handler (usually something internal like a Sync Delegate).

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.
DoublePressDelay Float how long it takes before it is to late to count as a double press.
ReleasePressInterval Float The amount of time it takes to release the button.
ButtonPressed ButtonEventHandler The place to send the signal.

Usage

This can send a signal internally.

Examples

Related Components