Executes the output when user touches the screen. It'll also output the screen coordinates of that tap.

Touch Sensor

The touch sensor has two settings, which can be changed by selecting the script and tapping the buttons that appear in the bottom right corner.

The first button has three options:

  • Touching: The touch sensor will trigger every frame when your finger is touching the screen
  • Begins: The touch sensor will trigger once when you begin touching
  • Ends: The touch sensor will trigger once when you stop touching

The second button changes how many fingers have to be touching the screen to trigger the touch sensor.

Example

Here's an example of how to use Touch Sensor to Tap to pick closest object.