csharp
public sealed class CurveDrawerA curve editor over the member's own curve.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ The curve is a reference type, so the editor edits the object the member holds. That makes every key drag a mutation the command stack never saw. What is recorded instead is one command per edit session, holding a copy of the curve from before it: the editor announces changes, and the drawer writes a snapshot back through Write so undo has something to put back.
Methods (3)
public override bool CanDraw(InspectorMember member)Whether this drawer can edit a member.
protected override CurveEditor Build(InspectorField field, UiElement parent)Makes the controls, once.
protected override void Show(InspectorField field, CurveEditor editor, AnimationCurve? value, bool isMixed)Puts the current value into the controls.
Used by (2)
- DrawerRegistryVixen.Editor.Inspector
- DrawerTestsVixen.Editor.Inspector.Tests