Please no Logix, also bad language I fixed it. |
Fixed link. |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 10: | Line 10: | ||
== Fields == | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|Touched| | |Touched|{{RootFieldType|SyncDelegate`1|[[Type:TouchEvent|TouchEvent]]}}|TypeAdv0=true| | ||
|AcceptOutOfSightTouch|Bool| | |AcceptOutOfSightTouch|Bool| | ||
|TouchableTargets|SyncRefList`1| | |TouchableTargets|{{RootFieldType|SyncRefList`1|[[Type:ITouchable|ITouchable]]}}|TypeAdv2=true| | ||
}} | }} | ||
Line 21: | Line 21: | ||
== Related Components == | == Related Components == | ||
* [[Touchable Events | * [[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. | ||
</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]] |
Latest revision as of 23:50, 3 June 2024
Component image
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
|
TouchEvent | |
AcceptOutOfSightTouch
|
Bool | |
TouchableTargets
|
list of 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
- Touchable Events can be used with TouchEventRelay.
TouchEventRelay can relay events from a Touchable element to fire another ITouchable component.