Character Viewer Element

🎮 CharacterViewerElement Class

UI element enabling drag-based character rotation.

Namespace: Esper.Inventool.UI Access: public Type: class Inherits: DraggableElement


📦 Fields

Access
Field
Type
Description

public

setter

Action<Vector2>

Callback for rotation delta.

private

previousPointerPosition

Vector2

Pointer position last frame.


🧰 Methods

Access
Method
Returns
Description

public

CharacterViewerElement()

Constructor wiring drag start and drag callbacks.

private

OnStart()

void

Capture pointer position at drag start.

private

OnDrag()

void

Compute movement delta, remap axes, and invoke setter.


Last updated