Scripting API
TouchGesturesModule
PinchGesture

PinchGesture

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

Inherits From : Gesture

Example

Properties

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


The screen space coordinates of the center point between the two touch touches of the pinch gesture, as a Vec2Signal.
Coordinates are always returned in screen space, even if an object was specified in the pinch gesture method call, for example: TouchGestures.onPinch(plane).
scale
(get) scale: ScalarSignal
(set) (Not Available)


The scale factor indicated by the pinch gesture, as a ScalarSignal.

Methods

This module exposes no methods.