Damage Receiver

A Damage Receiver represents a collider associated with a damageable object. Because a single damageable object might be made up of multiple colliders on different game objects, this component provides an efficient way for weapons to relay damage/healing information through the collider to the Damageable that the collider is part of.

When a weapon hits the collider, it looks for a Damage Receiver on the collider and passes the damage/healing information to it. The Damage Receiver then passes it to the Damageable.

Setting Up Damage Receivers

Each game object that has at least one collider representing a damageable object must have a Damage Receiver component added.

Drag the Damageable that the Damage Receiver is connected to into its Damageable field in the inspector.

Last updated