- Home /
Locomotion animations not looping properly, AnimationEvent has no receiver
I have a rigged character and am using free motion capture animations, both of which have "animation type: humanoid". The walk and run animations look great in the preview window, but in game the character will do one cycle of the animation, stop, then restart. This makes his movements choppy, like he moves a few steps, stops himself, walks, repeat. I've looked through tons of posts about similar issues but I haven't been able to fine a solution that works for me. I'm using Icebox studio's Adventure Creator to drive the character so unfortunately I can't talk about scripting, but I've noticed that every time the animation loop is interrupted the console displays the error "'Character' AnimationEvent "NewEvent" has no receiver! Are you missing a component?". It must be related because one of these errors pops up each time the animation stutters.
Answer by Baste · Jan 30, 2015 at 05:02 PM
That error means that there's an animation event at that point in the clip, and it's expecting a script on the model with a method that has the same name as the event: "NewEvent". The name "NewEvent" probably means that somebody clicked the create event button by mistake. This is pretty easy to fix, but the solution depends on what kind of animation it is.
If the animation is a part of a model: Select the model, go to the animations tab, select the animation causing the issue, and open the Events foldout at the bottom of the tab. There, you'll see a little symbol signifying the event. If you click it, you'll see that it's named "NewEvent". Click del to delete it.
If the animation is a stand-alone animation clip (.anim file): Open the animation in the animation window (open the animation window and then select an object with the animation on it). Make sure you've selected the right clip if there's several. Along the top line of the window, there should be a small symbol signifying the animation event. Select it and delete it.
If this doesn't fix the animation being laggy, make sure that the animation is set to loop.
Could you mark the answer as accepted to get it out of the queue of unresolved questions?