Vixen
02b45cc4
csharp
public readonly record struct GizmoDrag

A drag that has finished, handed to the targets so they can say what it was.

Read the guide page for this →

Remarks

⚠ The drag has already been applied when this is built. The gizmo owns the live manipulation and writes the targets every frame; what is left at mouse-up is the history, and is the only place the before state still exists.

Fields and properties (6)

  • public IReadOnlyList<IGizmoTarget> Targets

    Everything the gizmo was holding, in the order it took hold of them.

  • public GizmoMode Mode

    Which handles were on.

  • public GizmoHandle Handle

    Which one was grabbed.

  • public IReadOnlyList<(Vector3 Position, Quaternion Rotation, Vector3 Scale)> Captured

    What each target held at mouse-down, one per target.

  • public EditorDocument? Document

    The viewport's document, which is where a target with no opinion records.

  • public string Verb

    What the drag did, for the undo entry's name.

Methods (1)

Used by (6)

  • EntityGizmoTargetVixen.Editor.SceneView
  • IGizmoTargetVixen.Editor.SceneView
  • MeshGizmoTargetVixen.Editor.SceneView
  • ProxyShapeGizmoTargetVixen.Editor.AssetEditors
  • SceneViewportVixen.Editor.SceneView
  • StubTargetVixen.Editor.SceneView.Tests