| m removed needless introduction header |  add info | ||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| <languages></languages> | <languages></languages> | ||
| <translate> | <translate></translate> | ||
| <!--T:1--> | <!--T:1--> | ||
| {{Infobox Component | {{Infobox Component | ||
| |Image=TouchableDataComponent.png | |Image=TouchableDataComponent.png | ||
| |Name=Touchable Data | |Name=Touchable Data | ||
| }}The TouchableData component can be used to create simple touch based interactions.   | }} | ||
| The '''TouchableData''' component can be used to create simple touch based interactions.   | |||
| == Fields == | == Fields == | ||
| {{Table ComponentFields | {{Table ComponentFields | ||
| |Hovering|Bool| | |Hovering|Bool| Whether a user's laser is hovering over the component's collider | ||
| |Touching|Bool| | |Touching|Bool| Whether a user is clicking on the collider this component is on. | ||
| |AcceptOutOfSightTouch|Bool| | |AcceptOutOfSightTouch|Bool| {{Template:Touchable_AcceptOutOfSightTouch}} | ||
| |AcceptPhysicalTouch|Bool| | |AcceptPhysicalTouch|Bool| {{Template:Touchable_AcceptPhysicalTouch}} | ||
| |AcceptRemoteTouch|Bool| | |AcceptRemoteTouch|Bool| {{Template:Touchable_AcceptRemoteTouch}} | ||
| |OnHoverStartVibrate|VibratePreset| | |OnHoverStartVibrate|VibratePreset| How to vibrate the user's controller when they started hovering on the component. | ||
| |OnHoverStayVibrate|VibratePreset| | |OnHoverStayVibrate|VibratePreset| How to vibrate the user's controller every game update when they are hovering on the component. | ||
| |OnHoverEndVibrate|VibratePreset| | |OnHoverEndVibrate|VibratePreset| How to vibrate the user's controller when they stopped hovering on the component. | ||
| |OnTouchStartVibrate|VibratePreset| | |OnTouchStartVibrate|VibratePreset| How to vibrate the user's controller when they started primary pressing on the component. | ||
| |OnTouchStayVibrate|VibratePreset| | |OnTouchStayVibrate|VibratePreset| How to vibrate the user's controller every game update when they hold primary press on the component. | ||
| |OnTouchEndVibrate|VibratePreset| | |OnTouchEndVibrate|VibratePreset| How to vibrate the user's controller when they ended primary pressing on the component. | ||
| |EditModeOnly|Bool| | |EditModeOnly|Bool| Whether this component can only be interacted with by users in edit mode. | ||
| |ActiveUserFilter|ActiveUserHandling| | |ActiveUserFilter|ActiveUserHandling| How to handle which users can use this component based on the current active user. | ||
| }} | }} | ||
| <!--T:3--> | <!--T:3--> | ||
| == Usage == | == Usage == | ||
| {{stub}} | |||
| <!--T:4--> | <!--T:4--> | ||
| Line 33: | Line 34: | ||
| <!--T:5--> | <!--T:5--> | ||
| ==  | == See Also == | ||
| [[TouchButton  | * [[Component:TouchButton]] | ||
| [[Category: | |||
| [[Category:Components{{#translation:}}|Touchable Data]] | |||
| [[Category:Components:Transform:Interaction{{#translation:}}|Touchable Data]] | |||
Latest revision as of 18:14, 5 February 2025
Component image 
Touchable Data component as seen in the Scene Inspector 

The TouchableData component can be used to create simple touch based interactions.
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. Some components stop their functionality when this field is disabled, but some don't. | 
| Hovering | Bool | Whether a user's laser is hovering over the component's collider | 
| Touching | Bool | Whether a user is clicking on the collider this component is on. | 
| AcceptOutOfSightTouch | Bool | Whether or not to allow interaction with this component if it is out of the user's view. | 
| AcceptPhysicalTouch | Bool | Whether to allow Component:TipTouchSources to interact with/activate this component. | 
| AcceptRemoteTouch | Bool | Whether this component allows interaction via the user's interaction laser. | 
| OnHoverStartVibrate | VibratePreset | How to vibrate the user's controller when they started hovering on the component. | 
| OnHoverStayVibrate | VibratePreset | How to vibrate the user's controller every game update when they are hovering on the component. | 
| OnHoverEndVibrate | VibratePreset | How to vibrate the user's controller when they stopped hovering on the component. | 
| OnTouchStartVibrate | VibratePreset | How to vibrate the user's controller when they started primary pressing on the component. | 
| OnTouchStayVibrate | VibratePreset | How to vibrate the user's controller every game update when they hold primary press on the component. | 
| OnTouchEndVibrate | VibratePreset | How to vibrate the user's controller when they ended primary pressing on the component. | 
| EditModeOnly | Bool | Whether this component can only be interacted with by users in edit mode. | 
| ActiveUserFilter | ActiveUserHandling | How to handle which users can use this component based on the current active user. | 
Usage
This article or section is a stub. You can help the Resonite wiki by expanding it.
