Static ReadonlydefaultThe default viewport width. Viewport-size dependent gizmo scaling is relative to this width.
StaticsnapThe modifier key used for handle grid snapping.
StaticsnappingThe snapping settings.
StaticcreateCreates a context menu for the available gizmos.
Scene gizmos to create the context menu from.
Context menu for the available gizmos.
StaticgetReturns a scale that can be applied to a handle in order to keep it at constant size regardless of distance from the provided camera and the size of the viewport.
Camera through which the handle is being viewed.
center of the handle.
Window the gizmo is rendered in.
Uniform scale to apply to the handle.
StaticsnapStaticsnapStaticsnapStaticsyncSyncs the active gizmo states from the settings.
Scene gizmos to sync the active gizmo states to.
The GizmoUtility provides helper functions for viewport gizmos that use the drawGizmo decorators as well as InteractiveGizmo subclasses. It also provides access to settings that are reused for different gizmo implementations.