- Home /
The question is answered, right answer was accepted
AnimationEvent has no function name specified
I am making an animation on a plane where it just changes materials the "material" reference. Plays fine but everytime it plays it says AnimationEvent has no function name specified. I have no idea what this means please help!
Please do not retitle your post to include “Answered:” in the title. Unity Answers already automatically shows this information in lists of questions.
Answer by supernat · Nov 24, 2013 at 04:48 AM
In your Animation editor, you must have clicked the icon for Add Event, looks like a pencil with a small + in the bottom right corner, and is just to the right of the Add Key icon. If you have any Events in your timeline, they are shown at the top as small tall rectangles with an tip at the bottom (pencils I guess?). Anyway, just right click and select "Delete Animation Event".
FYI: these are handy to trigger some code. If you create a script and create a method, I make it a public method but it may not have to be, you can create one of these Events in the timeline of your animation and then assign that method to it. It even has the ability to pass a single parameter to the method if defined with one, so pretty powerful.
dude thank you you are a life saver I am just starting to learn about this animation stuff and little things like that is super confusing. Thank you.
Any ide why all of my animations play right in the beggingning of my scene starting. I want them to not play until I call them with a
getcomponent.play("anim");
$$anonymous$$y trigger works and plays the anim but in the begginning of the scene it plays once by itself?
Thank you so much i'm a noob at unity and this really helped me.
Thanks, the helped me figure out a bug in a tutorial I was going through!
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Problem animating Shader Properties 0 Answers
2D Animation does not start 1 Answer
How to animate UI Image material in Animation view 0 Answers
I'm confused with the animator 1 Answer