Scripting API
TouchGesturesModule
TapGesture

TapGesture

Exposes details of a detected tap gesture.
Ensure Tap Gesture is enabled under the project's Touch Gestures capability.

Inherits From : Gesture

Example

Properties

PropertyDescription
location
(get) location: Point2D
(set) (Not Available)


The screen space coordinates of the location that the tap gesture was detected, as a Point2D object.
Coordinates are always returned in screen space, even if an object was specified in the touch gesture method call, for example: TouchGestures.onTap(plane).
objectDepthDistance
(get) objectDepthDistance: number
(set) (Not Available)


The distance from the 3D location of the tap gesture to the camera, as a number.
This requires an object to have been specified in the touch gesture method call, for example: TouchGestures.onTap(plane). Otherwise, a value of infinity is returned.

Methods

This module exposes no methods.