A nice simple field, where you can select a function, I want this!
But instead of this, I always getting this sick 5 fields view, and don’t have any idea how to handle animation event in this case!
I tried to create function test() with debug log, but it didn’t work anyway. Why I can’t get access to this simple window where I can choose an function?
It probably is a Unity bug (since you have some preview packages it might be them causing some bug that prevents the refreshing of unity editor to show the correct properties in the inspector).
The best solution to those kinds of issues is to just restart Unity.
The only way I was able to change the look of the info about the event is by changing the properties from Normal to Debug.
You might want to check that setting - you access it by clicking the 3 dots (marked in red on the screenshot).
Again since it is not the same screen as yours I would assume that you have some package / asset that affects how the properties of the Animation Event are drawn.
Thanks, I am using a package com.unity.nuget.newtonsoft-jason for saving that causes a package error. Maybe this is the reason why had to use this working around.
I’m confused, selecting a gameobject changes the inspector to the gameobject which obviously you wouldnt have access to the animation event properties. Selecting the gameobject prior to selecting the animation yields the same result. Can you clarify what you mean please?
***Figured it out.
Just to elaborate for anyone else who may be confused, you have to select the object in the scene hierarchy, then select the animation from the dropdown menu underneath the record and preview buttons in the “Animation” window, not from the content drawer.
how does this work for the animation Import settings; in the Events, on the timeline, I can add the event and type the Fnction name, the animator, animation and script(funtion) are all on the playerprefab, there is not function selection and when I Play, I consistently get the same error regardless if it just the function name or I add the namespce.parent.function? Any ideas? the error is Animation Event ‘foo’ on animation ‘foo’ has no receiver!