- Home /
AnimationEvent triggers twice
Hello all, I have a problem with my 2D Project. I have a animation clip that simply moves a "popup" in. This triggers directly after entry. I placed the same clip with -1 speed to move it out. A button triggers once the "MoveOut" clip and the object moves out.
At frame 2 is the event that triggers when the object has been moved out. It should only trigger once but it triggers twice at the exact same time:
DEBUG: animationEventTime: 9.330082 animationEventTime: 9.330082
I found some topics about that already posted but I was not able to find the solution for that. So I decided to open a new one because all other topics where older. Can anyone help me? Thank you very much
Hello again. Isnt there anybody who can help me with that?
What am I doing wrong or is that a bug?
Thank you!
Answer by Masterio · Feb 01, 2016 at 09:11 AM
Check if you have only one AnimatorController attached to the game object or spawned on scece.
Answer by GTSGames · Mar 30, 2021 at 03:39 PM
I had the same problem. Fixed by deleting a duplicate script attached to the Object with the Animator. 2 scripts were both executing the same Event.