Docs / Transform gizmo

Glossary: ITransformGizmoTarget

The members of ITransformGizmoTarget, in alphabetical order.

Color legend plain property

Whatever the gizmo is attached to: a mesh, a light, a marker. The gizmo reads the pose from it and, while a handle is dragged, writes back the part that handle edits.

An interface. The targets page shows it in context, with code. Implement it over your own objects.

Names are colored by what they are: a property; values and fields keep the plain color.

Properties

Capabilities →

GizmoCapabilities · Read-only. The modes, and for move and rotate the frames, the gizmo offers for this target. None hides the gizmo. Read while no drag runs: a drag keeps the value it began with.

LocalRotation →

Quaternion · The rotation relative to the parent. Read when a rotate drag begins, and set by it: the drag composes its turn onto the value read, in the target’s own frame.

LocalScale →

Vector3 · The scale along the target’s own axes. Read when a scale drag begins, and set by it. The gizmo never reads or sets it for a target that doesn’t offer scale.

WorldAxes →

GizmoBasis · Read-only. The target’s own axes as they point in the world, made with FromObjectAxes from its world matrix. The local handles lie along them; a scaled, skewed or mirrored frame is fine.

WorldPosition →

Vector3 · The pivot, in world coordinates: where the gizmo is drawn, and what a move drag sets. Carry a new value through the parents into the target’s own position.