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

  1. Add Invincibility to the same GameObject as Health.
  2. Uncheck it if the object shouldn’t start invincible.
  3. Turn it on and off from an animation, a UnityEvent or code (invincibility.enabled = true).

📐 Settings

FieldWhat it does
On Invincibility StartedFires when the component is enabled. Start a blink or shield effect
On Invincibility StoppedFires 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.