Class TouchscreenGestureInputLoader
Component that manages the Touchscreen
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.AR.Inputs
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("XR/Input/Touchscreen Gesture Input Loader", 11)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.1/api/UnityEngine.XR.Interaction.Toolkit.AR.Inputs.TouchscreenGestureInputLoader.html")]
public class TouchscreenGestureInputLoader : MonoBehaviour
Remarks
Requires AR Foundation (com.unity.xr.arfoundation) package to be installed in this project.
Properties
tapDuration
Time (in seconds) within (≤) which a touch and release has to occur for it to be registered as a tap.
Declaration
public float tapDuration { get; set; }
Property Value
Type | Description |
---|---|
float |
Remarks
A touch and release that takes > this value causes the tap gesture to be canceled.
See Also
Methods
Awake()
See Mono
Declaration
protected void Awake()
OnDisable()
See Mono
Declaration
protected void OnDisable()
OnEnable()
See Mono
Declaration
protected void OnEnable()
RefreshGestureRecognizersConfiguration()
Refresh the properties on the gesture recognizers, such as the tap duration threshold, based on the serialized properties of this component. This is done automatically when this component is enabled, however this method can be called to manually refresh the configuration after the property values are changed.
Declaration
public void RefreshGestureRecognizersConfiguration()