ZepetoScreenStick
ZEPETO.Character.Controller.ZepetoScreenStick
Class designed to handle stick interactions in the ZEPETO environment.
Hierarchy
↳
ZepetoScreenStick
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
Name | Type | Description |
---|---|---|
$eventData | PointerEventData | Data related to the drag event. |
Returns
void
OnPointerDown
▸ OnPointerDown($eventData
): void
Handles events when the user presses a UI control.
Parameters
Name | Type | Description |
---|---|---|
$eventData | PointerEventData | Data 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
Name | Type | Description |
---|---|---|
$eventData | PointerEventData | Data related to the pointer up event. |
Returns
void