Skip to main content

ZepetoScreenStick

ZEPETO.Character.Controller.ZepetoScreenStick

Class designed to handle stick interactions in the ZEPETO environment.

Hierarchy

Constructors

constructor

new ZepetoScreenStick()

Overrides

ZepetoScreenControl.constructor

Properties

OnDragEvent

OnDragEvent: UnityEvent$1<Vector2>

Event triggered when the stick is being dragged.


OnPointerDownEvent

OnPointerDownEvent: UnityEvent

Event triggered when the stick is pressed down.


OnPointerUpEvent

OnPointerUpEvent: UnityEvent

Event triggered when the stick is released.

Methods

OnDrag

OnDrag($eventData): void

Manages the drag behavior, calculating the position delta and clamping it within the specified movement range. Triggers OnDragEvent with the normalized position value. Throws ArgumentNullException.

Parameters

NameTypeDescription
$eventDataPointerEventDataData related to the drag event.

Returns

void


OnPointerDown

OnPointerDown($eventData): void

Handles events when the user presses a UI control.

Parameters

NameTypeDescription
$eventDataPointerEventDataData related to the pointer down event.

Returns

void

Inherited from

ZepetoScreenControl.OnPointerDown


OnPointerUp

OnPointerUp($eventData): void

Handles events when the user releases a UI control.

Parameters

NameTypeDescription
$eventDataPointerEventDataData related to the pointer up event.

Returns

void

Inherited from

ZepetoScreenControl.OnPointerUp