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