Script API - v26.60.25
    Preparing search index...

    A single point in the lifecycle of a rotation ring drag, delivered to the handler registered with WidgetGizmoRotation.setStateChangeEvent. All angles it reports are in degrees.

    export class WidgetGizmoRotationEvent {
    private constructor();
    readonly axis: Axis;
    readonly component: WidgetComponentGizmo;
    readonly deltaDegrees: number;
    readonly eventType: WidgetGizmoRotationEventType;
    readonly totalDegrees: number;
    readonly widget: Widget;
    }
    Index

    Constructors

    Properties

    axis: Axis

    The world axis of the ring being dragged. The value is exactly one of Axis.X, Axis.Y, or Axis.Z. Every event in one drag reports the same axis.

    This property can't be read in early-execution mode.

    The gizmo component that produced this rotation event.

    This property can't be read in early-execution mode.

    deltaDegrees: number

    The signed change in rotation, in degrees, since the previous event of this drag. Only Moved events carry an incremental delta. It is zero on Grabbed, Released, and Cancelled events and is measured with the right-hand rule about the positive direction of axis.

    This property can't be read in early-execution mode.

    Which point in the drag this event reports.

    This property can't be read in early-execution mode.

    totalDegrees: number

    The signed rotation accumulated, in degrees, since the drag was grabbed. It is zero on the Grabbed event, is measured with the right-hand rule about the positive direction of axis, and is not wrapped, so a drag of several turns keeps growing past a full circle.

    This property can't be read in early-execution mode.

    widget: Widget

    The widget that owns the gizmo which produced this rotation event.

    This property can't be read in early-execution mode.