Invincibility
Invincibility blocks all damage to the Health on the same object while the component is enabled. Enable it to become invincible, disable it to take damage again.
Add Component: Glowing Rifts > Modular Health > Invincibility
🧱 Setup
- Add
Invincibilityto the same GameObject asHealth. - Uncheck it if the object shouldn’t start invincible.
- Turn it on and off from an animation, a UnityEvent or code (
invincibility.enabled = true).
📐 Settings
| Field | What it does |
|---|---|
| On Invincibility Started | Fires when the component is enabled. Start a blink or shield effect |
| On Invincibility Stopped | Fires when the component is disabled. Stop the effect |
💡 Good to Know
- An invincible object can still be healed.
- Hit effects on a hitbox’s On Hit still play.
Tip
Step by step: Make an Object Invincible. In the Many Ducks example, the ship is invincible for 3 seconds after it spawns.