Component:TouchEventRelay

From Resonite Wiki
Revision as of 02:40, 15 February 2023 by imported>Kazu
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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 Use hyperlink item without touchable/interactable component: Use TouchEventRelay. You put that on the top of your object, then put the hyperlink and other touchables as children (with no colliders on them) and add them to the list of "TouchableTargets" of the TouchEventRelay. Discord

Examples

Related Components