Patch Editor
Interaction Patches
Screen Pan

Screen Pan Patch

Use the Screen Pan patch to make something happen when you move your finger across the screen in any direction.

Panning the screen returns a value based on the 2D X and Y coordinates of the finger movements. The value returned differs depending on the size of the screen used.

Add a Screen Pan patch to an AR Studio project in this tutorial.

Inputs

NameDescription

Reset

Set the offset value of a gesture to 0,0.

Enabled

Enable pan gestures to be captured.

Outputs

NameDescription

Gesture State

A signal that's on when a pan gesture is in progress.

2D Offset

The difference between the start position and the moving position of the finger making the gesture.

2D Position

The position of the finger on the device screen.

Was this article helpful?