Vixen
02b45cc4
csharp
public sealed class CurveKey

One key of a curve.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Tangents are slopes, not control points. A slope survives the key being dragged in time — the shape either side stays what it was — where a control point stored as a position has to be moved with it, and every implementation that stores positions eventually forgets to in one of the six places a key can move.

Fields and properties (5)

  • public float Time

    When.

  • public float Value

    What.

  • public float InTangent

    The slope coming in, in value per unit of time.

  • public float OutTangent

    The slope going out.

  • public TangentMode Mode

    How the two behave.

Methods (2)

  • public CurveKey(float time, float value, TangentMode mode = Auto)

    Creates a key.

  • public override string ToString()

    Returns a string that represents the current object.

Used by (7)

  • AnimationCurveVixen.Ui.Controls.Advanced
  • AnimationCurveTestsVixen.Ui.Controls.Advanced.Tests
  • CurveEditorVixen.Ui.Controls.Advanced
  • CurveEditorTestsVixen.Ui.Controls.Advanced.Tests
  • TimelineLanesVixen.Ui.Controls.Advanced
  • AnimationClipCurvesVixen.Editor.AssetEditors
  • CurveDrawerVixen.Editor.Inspector