0
Answered

'PlayerModelKnight' AnimationEvent 'Hit' has no receiver! Are you missing a component?

Andi Rutz 10 months ago in Game Creator updated by Marti (Lead Developer) 10 months ago 3

I keep getting this error but I can't find what it means. Can I get some info on this? It only happens when i trigger key down an gesture for an attack. 

Unity version:
18.4.7f1
Game Creator version:
9.9

Answer

Answer
Answered

You've added an animation event called "Hit" in your animation clip but there's no component with the "Hit()" method. Have you downloaded this animations from somewhere or did you create them yourself?

Either case, you can remove the Hit event or create a component that receives it. For more information about animation events, check the Unity documentation: https://docs.unity3d.com/Manual/AnimationEventsOnImportedClips.html.

Answer
Answered

You've added an animation event called "Hit" in your animation clip but there's no component with the "Hit()" method. Have you downloaded this animations from somewhere or did you create them yourself?

Either case, you can remove the Hit event or create a component that receives it. For more information about animation events, check the Unity documentation: https://docs.unity3d.com/Manual/AnimationEventsOnImportedClips.html.