Difference between revisions of "TouchEventRelay (Component)"
Jump to navigation
Jump to search
m |
|||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
− | + | Apparently, TouchEventRelay can relay events from a Touchable element to fire another ITouchable component. | |
+ | |||
{{Infobox Component | {{Infobox Component | ||
|Image=TouchEventRelayComponent.png | |Image=TouchEventRelayComponent.png | ||
Line 18: | Line 19: | ||
<!--T:3--> | <!--T:3--> | ||
== Usage == | == 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. [https://discord.com/channels/402159838827905024/477711742001086505/721967459262791730| Discord] | |
− | |||
== Examples == | == Examples == | ||
* [https://www.youtube.com/watch?v=5n2veHi-CJU Using TouchEventRelay for complicated Touch Events] by [[User:ProbablePrime|ProbablePrime]] | * [https://www.youtube.com/watch?v=5n2veHi-CJU Using TouchEventRelay for complicated Touch Events] by [[User:ProbablePrime|ProbablePrime]] | ||
Line 27: | Line 27: | ||
* [[Touchable_Events_(LogiX_node)]] Needs to be used with TouchEventRelay under Transform/Interaction) [https://discord.com/channels/402159838827905024/469131434628612116/655778555594014740| Discord] | * [[Touchable_Events_(LogiX_node)]] Needs to be used with TouchEventRelay under Transform/Interaction) [https://discord.com/channels/402159838827905024/469131434628612116/655778555594014740| Discord] | ||
</translate> | </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 04:40, 15 February 2023
Apparently, TouchEventRelay can relay events from a Touchable element to fire another ITouchable component.
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
- Touchable_Events_(LogiX_node) Needs to be used with TouchEventRelay under Transform/Interaction) Discord