csharp
public readonly record struct GizmoDragA drag that has finished, handed to the targets so they can say what it was.
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> TargetsEverything the gizmo was holding, in the order it took hold of them.
public GizmoMode ModeWhich handles were on.
public GizmoHandle HandleWhich one was grabbed.
public IReadOnlyList<(Vector3 Position, Quaternion Rotation, Vector3 Scale)> CapturedWhat each target held at mouse-down, one per target.
public EditorDocument? DocumentThe viewport's document, which is where a target with no opinion records.
public string VerbWhat the drag did, for the undo entry's name.
Methods (1)
public GizmoDrag(IReadOnlyList<IGizmoTarget> Targets, GizmoMode Mode, GizmoHandle Handle, IReadOnlyList<(Vector3 Position, Quaternion Rotation, Vector3 Scale)> Captured, EditorDocument? Document)A drag that has finished, handed to the targets so they can say what it was.
Used by (6)
- EntityGizmoTargetVixen.Editor.SceneView
- IGizmoTargetVixen.Editor.SceneView
- MeshGizmoTargetVixen.Editor.SceneView
- ProxyShapeGizmoTargetVixen.Editor.AssetEditors
- SceneViewportVixen.Editor.SceneView
- StubTargetVixen.Editor.SceneView.Tests