|TouchableTargets|{{RootFieldType|SyncRefList`1|[[Type:ITouchable|ITouchable]]}}|TypeAdv2=true| Target touchable components to send the touch event to.
}}
}}
Line 21:
Line 20:
== Related Components ==
== Related Components ==
* [[Touchable Events (ProtoFlux)]] can be used with TouchEventRelay.
* [[ProtoFlux:Touchable Events|Touchable Events]] can be used with TouchEventRelay.
TouchEventRelay can relay events from a Touchable element to fire another ITouchable component.
TouchEventRelay can relay events from a Touchable element to fire another ITouchable component.
Target touchable components to send the touch event to.
Usage
To trigger a hyperlink component without a touchable/interactable component you can use a TouchEventRelay. You a touch event relay on the collider of your object, then put a hyperlink or other touchables as children (with no colliders on them) then add them to the TouchableTargets list of the TouchEventRelay.