(One intermediate revision by one other user not shown)
Line 2:
Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=ButtonPressEventRelayComponent.png
|Image=ButtonPressEventRelayComponent.png
|Name=Button Press Event Relay
|Name=Button Press Event Relay
}}
}}
The '''ButtonPressEventRelay''' component takes in a [[Slot|slot]] target, and if any [[Type:IButton|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).
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Target|Slot|
|Target|Slot| The [[Slot|slot]] to send the signal to.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Useful for sending multiple signals from one press event.
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).