Skip to main content
3 of 4
Corrected grammar
user avatar
user avatar

Unity: how to detect collision occuring on child object, from a parent script?

I've an enemy, with this structure

  • Enemy
    • Body
      • Head
      • Arm Left
      • Arm right

And so on.

I also have a collider for each part of the body. In my "Enemy" object I've attached a script and in that script I would like to intercept possible collision (a bullet) for body, head, arm, left etc.

Is there a way to do this?

stighy
  • 477
  • 6
  • 32
  • 62