csharp
public readonly record struct FiredAnimationEventAn 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 EventThe authored event.
public int LayerWhich layer it came from.
public string StateThe state that was playing it.
public float WeightHow 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