Health — Editor Tools¶
Editor utilities for the Health System.
Overview¶
Debug and inspect health components, shields, rules, regeneration, invincibility frames, and combat events directly in-editor.
These tools are designed to help developers understand, verify, and QA the behaviour of the Health System at a glance.
Contents¶
| Type | Description |
|---|---|
| Windows | HealthDebuggerWindow, RuleOrderInspector |
| Inspectors | Custom editors for: • HealthSystem• DamageRuleHub• HealRuleHub• ShieldChain |
| Runtime Tools | HealTrace, RegenCeilingSpy — lightweight diagnostics for Play Mode |
Menu Paths¶
Debugging Windows¶
-
RevGaming / Debuggers / Health Debugger
(Shortcut: Ctrl/Cmd + Shift + H)
Opens the full Health Debugger workspace: live HP, preview tools, rules inspector, shields inspector, event tracing, and history. -
RevGaming / Inspect / Health Rule Order
Displays live, sorted rule priorities from anyDamageRuleHuborHealRuleHub, including tie detection.
Included Editors¶
HealthSystemEditor¶
Custom inspector that exposes:
- Core properties
- Behaviours (i-frames on revive, regen reset, overheal spill)
- Defaults (ScriptableObject)
- Live shield summary
- Networking authority hints
- UnityEvents + detailed events
- Last damage breakdown
- Add-ons (DeathEffectHandler, Regeneration, ShieldChain, DOT/HOT)
- QA buttons for rapid testing in Play Mode
ShieldChainEditor¶
- Displays ordered shield components under a
ShieldChain. - Supports Up/Down component reordering via Unity’s internal
ComponentUtility. - Shows active composition exactly as used at runtime.
DamageRuleHubEditor / HealRuleHubEditor¶
- Lists discovered rules implementing
IDamageRule/IHealRule. - Sorted by priority.
- Useful for verifying correct rule ordering without diving into scene hierarchy.
Runtime Diagnostics¶
HealTrace¶
- Logs +heal events to the Console with stack trace.
- Helps you find where unexpected heals originate.
RegenCeilingSpy¶
- Logs activation of regen ceiling targets.
- Helps QA regeneration behaviour (PercentOfMax, MissingPercentage, Absolute).
Notes¶
- All editor scripts are wrapped in:
#if UNITY_EDITOR && REV_HEALTH_PRESENT - Safe for inclusion in projects — editor-only and automatically stripped from builds.
- Designed to complement the Health Teaching Panels used in demo scenes.
TL;DR¶
You’ve got:
- A full Health Debugger window
- Rule ordering inspector
- Rich custom inspectors
- Live runtime probes
- Zero runtime overhead in builds