Vixen
02b45cc4
csharp
public sealed class TimelineTrack

One row: a name, some keys or some spans, and optionally the curve they describe.

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

Fields and properties (7)

  • public string Name

    What it is called.

  • public TimelineTrackKind Kind

    Whether it holds instants or intervals.

  • public IReadOnlyList<TimelineKey> Keys

    Its keys, in time order.

  • public IReadOnlyList<TimelineSpan> Spans

    Its spans, in start order.

  • public bool Muted

    Whether it is switched off.

  • public AnimationCurve? Curve

    The curve these keys are of, if the application has one.

  • public object? Tag

    Whatever the application wants to hang off it.

Methods (7)

  • public TimelineTrack(string name, TimelineTrackKind kind = Keys)

    Creates a track.

  • public TimelineKey Add(float time, object? tag = null)

    Adds a key.

  • public bool Remove(TimelineKey key)

    Removes a key.

  • public void Move(TimelineKey key, float time)

    Moves a key and puts the list back in time order.

  • public TimelineSpan AddSpan(float begin, float end, object? tag = null)

    Adds a span.

  • public bool Remove(TimelineSpan span)

    Removes a span.

  • public void Move(TimelineSpan span, float begin, float end)

    Moves a span's ends and puts the list back in start order.

Used by (7)

  • TimelineVixen.Ui.Controls.Advanced
  • TimelineHeaderVixen.Ui.Controls.Advanced
  • TimelineLanesVixen.Ui.Controls.Advanced
  • TimelineSpanTestsVixen.Ui.Controls.Advanced.Tests
  • TimelineTestsVixen.Ui.Controls.Advanced.Tests
  • AnimationClipViewVixen.Editor.AssetEditors
  • SequenceViewVixen.Editor.AssetEditors