UI element enabling drag-based character rotation.
Namespace: Esper.Inventool.UI Access: public Type: class Inherits: DraggableElement
Esper.Inventool.UI
public
class
DraggableElement
setter
Action<Vector2>
Callback for rotation delta.
private
previousPointerPosition
Vector2
Pointer position last frame.
CharacterViewerElement()
โ
Constructor wiring drag start and drag callbacks.
OnStart()
void
Capture pointer position at drag start.
OnDrag()
Compute movement delta, remap axes, and invoke setter.
Last updated 4 months ago