Skip to content

Damage System

Use this page as the implementation-oriented counterpart to the product page. The important runtime files are in the character controller health and damage folders.

  • Health.cs
  • HealthAutoRefill.cs
  • DamageType.cs
  • DamageContext.cs
  • DamageResult.cs
  • DamageResistance.cs
  • DamageResistanceProcessor.cs
  • TypedDamage.cs
  • DamageOnTouch.cs
  • KillZone.cs
  • Add a health-bearing target
  • Configure damage types
  • Add resistance values if needed
  • Hook the death or hit feedback you want
  • Screenshot: Health and resistance settings in the Inspector.
  • Screenshot: Damage trigger object in the Scene.
  • GIF: Damage application and health reduction.
  • Video: How to configure a damageable enemy or prop.
  • Diagram: Damage source → processor → health → death.