i get this function whenever i start my game. i have an animation for crossfade playing when i open it to transition between scenes. what does this error mean and how do i fix it?
Check if you inadvertently put an animation event into one of your animations but didn’t connect it up to a function.
Or maybe there was a function and it got renamed, not sure, but it’s at least a few things to look at.
oh ok thankyou
ill check that
ok i know where the error is coming from but i dont know how to fix it… whenever i delete the animation on a crossfade gameobject canvas my fade animation stops working but if i leave it in, i get errors… i made this animator one day and i now have no idea how i made it or how to fix it
also i looked online and in this case what does the function refer to. cause im a noob and dont know anything
Doubleclick on the animator controller (this one is called Crossfade) and in that window you can inspect the individual states and transitions and and animations to find the callback it is complaining about.
If you’re not familiar with the above systems, there are a LOT of tutorials out there.
ok ill look at some tutorials and see what you mean
I’m using unity 2020, if anybody else encountered this and needs a tip.
The red circle contains the button that creates the Event.
The blue square contains the actual Event that was created. Just right click it and delete(there might multiple events)
Hope this helps
Thanks @dinoelT
Great @dinoelT
its works
Please don’t necro-post threads for this. Just press LIKE and move on.
Here’s some more up-to-date AnimationEvent information:
https://docs.unity3d.com/Manual/script-AnimationWindowEvent.html
https://forum.unity.com/threads/no-function-dropdown-in-animationevent.1256793/#post-7987980
Thanks dinoeIT that was the answer for me too.