Patch Editor
Interaction Patches
Screen Pinch

Screen Pinch Patch

Use the Screen Pinch patch to make something happen while the screen is pinched.

You can add a Screen Pinch patch to an AR Studio project in this tutorial.

Inputs

NameDescription

Reset

Set the scale value of a gesture in progress to 1.

Enabled

Enable screen pinches to be captured.

Outputs

NameDescription

Gesture State

A signal that's on when a gesture is captured.

Scale

The scale of the pinch, starting from 1.

Example

We set the graph below to make an object appear when the user pinches the screen.

To do this, we connected the State output of the Screen Pinch patch to the Visible input on the object patch.

While the user pinches the screen, a check appears to the right of Visible and the object appears on the user’s face.

When the user stops pinching the screen, the object is no longer Visible.

Was this article helpful?