ParaScript.On3DTouchBegin

Declaration

public void On3DTouchBegin(HandType hand)

Parameter

Parameter NameParameter Description
handArea where a player presses the screen

Description

Triggered when an object is being pressed on the screen.

The On3DTouchBegin, On3DTouchDrag, On3DTouchEnd, and On3DClick events are generally used with the ParaInteractiveObject script.

When the object is mounted with the ParaInteractiveObject script and a player enters the interaction range of the object, this event will be triggered if the player interacts with the object on the screen. In this case, if the player's finger is on the left side of the screen, HandType.Left will be passed in by the hand parameter of the event; if the player's finger is on the right side of the screen, HandType.Right will be passed in by the hand parameter.