Animation event function

Hello all, I have a question about the animation event something like below:

  • I have a attack animation from frame 0-100
  • Added a animation event at frame 50 and named " AttackEnd"
  • it have a script machine and have a graph call “AnimEventGraph” at the same gameobject
  • inside i have a “Named animation Event” node to Listen to the “AttackEnd”

so currently it have an error:
‘Character_Rig’ AnimationEvent ‘AttackEnd’ on animation ‘AttackClip’ has no receiver! Are you missing a component?

I’m wonder how can the scrip listen to the animation event.

many thanks

I’m having the same problem, I feel it may be an issue with the visual scripting as I can get it working with a regular script.

I personally use TriggerUnityEvent Animation triggers. only because it seems to work.
not sure about the limitations or whatever on unity events compared to custom events etc.

here’s an example of the Trigger I’m currently using to spawn spent shells using my own object pool thing
8528303--1138136--Capture.PNG 8528303--1138139--Capture2.PNG 8528303--1138142--Capture3.PNG

would be interesting to make an animation with tons of triggers and see how/if she works.
could just trigger a sequence of time based events with the animator without actually animating any object