- Home /
Blend Tree Fire all Animation Events from all Animations at same time
Hi,
I'm having an issue with Blend Tree and Animation Event.
When I trigger a parameter (MeleeFight), Animator enters in a Blend Tree and Blend Tree choose the right Animation to play with 2D Simple Directional. Each Fight Animation has an Animation Event at beginning and calls a function with a specific Integer parameter. It works with my Hero, only Animation Event from Animation that Blend Tree is choosing is called. But with my AI Enemies, all Animation Event from all Direction Animations are called…
How is it possible?
Thank you for any answer :)
Here is a Screenshot of my Blend Tree :
Answer by LanslowDuLac · Jul 20, 2018 at 11:06 AM
I found on another Thread that it's a normal thing from Blend Tree to call Animation Events from all Animations.
To resolve it, I need to verify the weight of the Animation that called function. Here is the solution : https://forum.unity.com/threads/mecanim-5-blend-tree-animation-event-called-twice.318747/