AnimationEvent has no function name specified! (16781)

I have a strange problem that puzzels me a bit. I have made this powersupply box, that has a propeller on it. I want to animate this with only a 360 degree rotation around the y axis. So I think, no need to set up anything in Maya, just model it, and animate it in Unity, I saw a video recently, where that seemed to be pretty easy. So I go along and create a new animation, rotate it 360 degrees around the y axis, add the looped animation to the propeller.. and it works.... however, I get this annoying error message: AnimationEvent has no function name specified!

Error in file: C:\BuildAgent\work.. blablabla...\Runtime\Animation\AnimationEvent.ccp Line 135.

I get this error message every 2 seconds, anyone has a clue what I am doing wrong, or if this is a bug in unity. I could just set it up in Maya, but would like to know what I am doing wrong.

In the Animation window, check each of the animations you have applied to your object. The culprit is likely an animation event calling a function that does not exist. Either remove the animation event or make sure the function exists on the object.

alt text

If you make an animation using the timeline and key frames, check the top of your timeline for little tabs that indicate you added an animation event (maybe by mistake). Right click and delete.

Check this link for detailed and fantastic answer.

clipinapps

I couldn’t find anything wrong. So in the end, I removed the animator and recreated it and imported the animations again.

The error was gone then.

In the Animation window On Top there you can add event its Look like a small white Line , When you Click on it it demanded a function , when its empty it throw Error .

Mine Problem was I Added multiple events with functions , But one add by mistake ( without function ) in same frame where already a event added .

I got the same error message in spite of the fact, that I had -seemingly- only one AnimationEvent and it had a function properly specified - and it worked, too!

When in the Animation window I moved my mouse cursor to the event (the “pencil” icon), it showed the fuction name in a small tooltip-like bubble.

Finally I found out, that I had ANOTHER empty AnimationEvent HIDING BELOW the active one, so there were accindentally two events placed on top of each other, on the exact same position of the timeline, that’s why I could see only 1 “pencil” icon.

When I moved the upper event to another time position, then its revealed: there was the other, empty event below it, so I had 2 “pencil” icons now!
After deleting the empty one, the error message disappeared.

I guess, I’d accidentally double-clicked on the “Create new event”, that’s how these 2 overlapping AnimationEvents were created.

If it is allowed, that more events be started at the exact same time (and why not), so these kind of overlapping “pencil” icons are unavoidable, then at least it would be nice to have a number in a circle above/next to the “pencil” icon, that shows the number of overlapping events hiding there - similarly to the number of new messages displayed for a messaging app on mobile.