Vixen
02b45cc4
csharp
public readonly record struct FiredAnimationEvent

An event that actually fired this frame, and what fired it.

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

Remarks

The weight is what stops a crossfade firing two footsteps. Both clips cross their footstep key during the blend and both events are real; the one at 5 % is not a step anybody heard, and only the handler knows what its own threshold is. Reporting the weight and letting the game filter is the only version of this that is not wrong for somebody.

Fields and properties (4)

  • public AnimationEvent Event

    The authored event.

  • public int Layer

    Which layer it came from.

  • public string State

    The state that was playing it.

  • public float Weight

    How much that state was contributing when it fired, in [0, 1].

Methods (1)

  • public FiredAnimationEvent(AnimationEvent Event, int Layer, string State, float Weight)

    An event that actually fired this frame, and what fired it.

Used by (3)

  • AnimationClipTestsVixen.Animation.Tests
  • AnimationEventBufferVixen.Animation
  • StateMachineTestsVixen.Animation.Tests