Component:TouchEventRelay: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page TouchEventRelay (Component) to Component:TouchEventRelay: Creating component Namespace
m Fix translate tag
Line 23: Line 23:
* [[Touchable Events (ProtoFlux)]] can be used with TouchEventRelay.
* [[Touchable Events (ProtoFlux)]] 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.
</translate>
[[Category:Components{{#translation:}}|Touch Event Relay]]
[[Category:Components{{#translation:}}|Touch Event Relay]]
[[Category:Components:Transform:Interaction{{#translation:}}|Touch Event Relay]]
[[Category:Components:Transform:Interaction{{#translation:}}|Touch Event Relay]]

Revision as of 21:34, 3 March 2024


Component image 
Touch Event Relay component as seen in the Scene Inspector


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.
Touched WorldDelegate
AcceptOutOfSightTouch Bool
TouchableTargets SyncRefList<ITouchable>

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.

Examples

Related Components

TouchEventRelay can relay events from a Touchable element to fire another ITouchable component.