Reputation: 2742
I've been trying to get to grips with the Timeline feature in Unity, but I am having problems where an animation event is not firing when I think it should.
I have an object that is animated by an animation track containing two animation clips. The first clip contains an animation event at the end. This clip is looped 7 times. The second clip is then played once:
I would expect to observe the event 7 times, but I only see it 6 times - the very last event does not fire.
If I add a gap between the two clips then all 7 events correctly fire:
The clips are short in duration - I think there is some sort of blending done by the timeline between the two clips that stops the last event firing. Ease In and Ease-out duration are set to 0. I've tried changing the extrapolation and Blend Curve settings, but nothing seems to change it.
Upvotes: 1
Views: 4154