"...has no receiver! Are you missing a component?"

Unity 2020.3.30f1
Udemy lecture 189

I checked several similar threads at Udemy Q&A, mostly restarting the Unity Editor but I have tried:

  • restarting the Unity Editor
  • dragging in EnemyAttack.cs to the “Object” field of Animation Event
  • removing () from the “Function” field, hence “AttackHitEvent”
  • renaming the “AttackHitEvent”.
  • ensure “public” is used on the event method “AttackHitEvent()” under EnemyAttack.cs
  • EnemyAI.cs, EnemyHealth.cs and EnemyAttack.cs are assigned to GameObject “Enemy”.

All the above cannot solve the “No receiver” issues below, program hangs during runtime:

Unity - AttackHitEvent

The existing lecturing animation “Attack Anim - Placeholder” works with the AttackHitEvent() but after changed to the Zombie by Pxltiger at animation Z_Attack like below, added an event “AttackHitEvent”, it hangs at runtime:

Any idea ?

Please advise.

I resolved the issues by disabling the default Animator of Enemy\Zombie1 at Hierarchy:

Unity - Disable the Zombie original Animator

At Hierarchy, \Enemy\Zombie1 where \Enemy already had the Animator Controller set to Enemy and Avatar set to “Zombie1Avatar”, I just removed the Animator Controller under \Enemy\Zombie1.

For better referencing, here is the lecture screen:

Hopes, this help.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.