Component:ButtonPressEventRelay: Difference between revisions

From Resonite Wiki
Added a description, added a usage description, added a field description. This is no longer a stub.
Add some related
 
Line 23: Line 23:


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
* [[Component:ButtonPressEventRelay]]
* [[Component:ButtonHoverEventRelay]]
* [[Component:ButtonRelay]]
</translate>
</translate>
[[Category:Components{{#translation:}}|Button Press Event Relay]]
[[Category:Components{{#translation:}}|Button Press Event Relay]]
[[Category:Components:Common UI:Button Interactions{{#translation:}}|Button Press Event Relay]]
[[Category:Components:Common UI:Button Interactions{{#translation:}}|Button Press Event Relay]]

Latest revision as of 15:14, 11 November 2024

Component image 
Button Press Event Relay component as seen in the Scene Inspector


The ButtonPressEventRelay component takes in a slot target, and if any IButton press event happens with this component on a slot, will also send a signal to that target slot, and the components on that target slot will trigger with press events (if applicable).

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.
Target Slot The slot to send the signal to.

Usage

Useful for sending multiple signals from one press event.

Examples

See Also