Skip to main content
TikTok Effect House Platform Logo
Latest
Download
Log in
Event

Screen Pan

Use Screen Pan to execute the next node when someone moves their finger on the device screen over 30 pixels. Screen Pan is in the Event category.

Here is an example of the Position coordinates for Screen Hold.

Output

NameData typeDescription
NextExecExecute the next node when the finger is moving on the device screen
OffsetVec2The distance between the start position and the moving position of the finger on the device screen
PositionVec2The 2D position of the finger on the device screen

Example

↓ ScreenPan.zip

This demo shows how to use Screen Pan to control the position of the sphere in real-time.

Move this demo a little bit further and use the offset property of Screen Pan to get the distance you move from the starting point. Apply this value to scale the sphere you are controlling now.