Skip to main content

Screen Tap

screen tap

Use Screen Tap to execute the next node when the device screen is tapped. It is executed as soon as the finger touches the device screen.

Below is an example of the position coordinates for a screen tap:

position coordinates for a screen tap

Output

NameData TypeDescription
NextExecExecute the next node when the screen is tapped.
PositionVec2The 2D position of the tapping point.

Example

screen tap example

Use Screen Tap to get the tap position on the screen, then transform the tap position from the screen to the world by using Screen to World. ZDepth is the Z distance between the target object and the camera.

screen tap node