A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Editor & General Support' started by brunoenvia, Nov 13, 2019.
why i can only add an animation event from 1 script? i have my other script with public function too
still needing help please
Adding more than one event to an animation would be quite confusing for the engine. You need to pack up everything your want to happen in one function only.
yes but i cant even choose the script i want to add
It's not the script that you must add, it's the function you created that describes what you want to happen at that time of the animation: https://docs.unity3d.com/Manual/AnimationEventsOnImportedClips.html.
yes i know but i can't add it either. the function that i want does not appear in animation event
The function must be public.
In the animation event dialogue, in Function, you can add your function manually without the final (). Make sure you write it correctly, it's case sensitive and it won't tell you if you make a typo.