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:

Output
Name | Data Type | Description |
---|---|---|
Next | Exec | Execute the next node when the screen is tapped. |
Position | Vec2 | The 2D position of the tapping point. |
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.
