unreal.GizmoElementTranslateInteraction

class unreal.GizmoElementTranslateInteraction

Bases: StructBase

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

C++ Source:

  • Module: EditorInteractiveToolsFramework

  • File: GizmoElementTranslate.h

Editor Properties: (see get_editor_property/set_editor_property)

  • direction (Optional[Vector2D]): [Read-Write] The explicit drag direction corresponding with view-relative translation. (1.0, 0.0) means left-to-right movement moves positively, right-to-left moves negatively. Vertical movement wouldn’t do anything. Only applicable to indirect manipulation. If not set, the screen-space direction of the selected axis is used.