The unit’s parent object must have the Unit Health component attached to it. This is the component that handles the unit’s health settings.
- Maximum Health: Maximum health points for this unit.
- Hover Health Bar Y/Height: When moving the mouse over a unit’s object, a health bar would appear. This is the health bar’s position on the y axis.
- Can Be Attacked: If disabled, then enemy factions will not be able to target this unit to be attacked.
- Take Damage: if disabled, then enemy factions will be able to target this unit to attack it but the unit will not receive any damage from the attacks.
- Destroy Object: When disabled, the unit’s object won’t be destroyed when the unit has zero health
- Destroy Object Time: After how much time (in seconds) should the unit’s object be destroyed after it hits zero health (if the above option is enabled).
- Destroy Award: This array allows the faction that destroyed this unit to get resources as a reward. The resource types and their respective amounts can be assigned inside this array.
- Destruction Audio: Audio clip played when this unit is destroyed.
- Destruction Effect: When the unit is destroyed, this effect object will be shown on the unit’s position.
- Stop Moving On Damage: When enabled, then whenever the unit receives damage, it will briefly stop moving (if it was already moving) for the duration at which the damage animation is played.
- Enable Damage Animation: When disabled, then the damage animation will not be played when the unit receives damage.
- Damage Animation Duration: Input the duration of the animation that is played when a unit receives damage in this field.