- Home /
Can't add animation event because there's too many functions to select from
This is a pretty serious limitation I just hit. I can't add an animation event to call a function I just wrote just because there's too many functions taking up the list.
One of the functions I wrote which only takes a bool argument does not appear in that list. I really don't want to change the method signature just to get it to appear (and honestly I shouldn't have to).
Is there a way to deal with this problem? I'd like to avoid a gimicky workaround if possible. I saw on another post a suggestion to parent what you want to animate to an empty game object and animate that, so that's what I'd consider gimicky.
Answer by kacyesp · Sep 07, 2014 at 06:44 AM
Well, I ended up thinking of a viable workaround. Just remove some scripts from the object, to shorten the list of functions to choose from, pick the function you need for the animation event, then add the script back.
Also, I had a somewhat hidden problem as well within this question. I tried using a function that took a bool as a parameter for the animation event, but according to the docs, "The parameter can be a float, string, int, object reference or an AnimationEvent object." Silly me.
Answer by Sliders99 · Oct 25, 2016 at 05:11 PM
Just ran into the same issue. Turns out keyboard up and down arrows allow you to scroll through the list. Also there is a small pointing arrow on the top of the list which wasn't working until i used the keyboard arrows.
Your answer
Follow this Question
Related Questions
How should I set up 2D animations for weapons in Unity? 0 Answers
Zero-Out Animation Transition 1 Answer
Crushy Bird Game Doubt 1 Answer
Custom Pivot Points in Sprite Editor 1 Answer
Octopus movement 0 Answers