Damage Box
Changes the health of anything with Health that touches it: negative to hurt like lava, positive to heal like a spring.
Introduction
Damage Box changes the health of anything with Health that touches it. Fill it with a negative number to hurt, or a positive one to heal, turning the same component into lava or a healing spring. The Damage Box component panel in the Uni editor Image The Damage Box component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Damage Box. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Another Way to Access
Shortcut: open the Asset Panel, go to the Device tab, Others category, and click the Health modifier block. It spawns an object that changes the health of whatever touches it, with the Damage Box component already attached and ready to configure. How to Access - the Health modifier block in Asset Panel > Device > Others
Properties
Health Change Float How much health to change per hit. Negative values wound, positive values heal. Modifier Mode Enum When Hit applies the change once per touch. Continuous applies it over and over while the object stays inside, for steady damage over time. Property Type Description Every property on the Damage Box component.
Events
Damage Box has no events.
Commands
Damage Box has no commands.
Example
Give damage and healing to objects with the Health component Damage Box - Simple Example