unreal.GizmoElementScaleInteraction

class unreal.GizmoElementScaleInteraction

Bases: StructBase

Interaction options for scale gizmo elements, controlling how user input maps to scale deltas.

C++ Source:

  • Module: EditorInteractiveToolsFramework

  • File: GizmoElementScale.h

Editor Properties: (see get_editor_property/set_editor_property)

  • direction (Vector2D): [Read-Write] The drag direction corresponding with a scale increase. (1.0, 0.0) means left-to-right movement scales up, right-to-left scales down. Vertical movement wouldn’t do anything.

  • distance_source (GizmoElementScaleDistanceSource): [Read-Write] The amount is based on the distance to the reference point specified here.

  • distance_type (GizmoElementScaleDistanceType): [Read-Write] The direction of the scale (+/-) is based on the metric below.

  • minimum_scale (Optional[float]): [Read-Write] Minimum scale value clamp. Prevents the scale from reaching zero or extremely small values.

  • multiplier (float): [Read-Write] Overall multiplier applied to the computed scale delta.