Damage System
Overview
Section titled “Overview”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.
Important files
Section titled “Important files”Health.csHealthAutoRefill.csDamageType.csDamageContext.csDamageResult.csDamageResistance.csDamageResistanceProcessor.csTypedDamage.csDamageOnTouch.csKillZone.cs
Setup checklist
Section titled “Setup checklist”- Add a health-bearing target
- Configure damage types
- Add resistance values if needed
- Hook the death or hit feedback you want
Media Suggestions
Section titled “Media Suggestions”- 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.