Health Pickup
HealthPickup heals or hurts whatever touches it. Use it for health packs, poison, spikes, lava, or enemies that hurt on touch.
Add Component: Glowing Rifts > Modular Health > Health Pickup
🧱 Setup
- Add
HealthPickupto a GameObject with a solid (non-trigger) collider. - Set Amount: positive heals, negative hurts.
- Set Collectors to the layers that can pick it up, such as your player’s layer.
- Make sure the pickup or the player has a non-kinematic Rigidbody, so Unity reports the collision.
Note
If your player’s Rigidbody is kinematic, give the pickup its own Rigidbody. Turn off Use Gravity and freeze its position and rotation so it stays put.
📐 Settings
| Field | What it does |
|---|---|
| Amount | How much health it gives. Negative takes health away |
| Collectors | Layers that can pick it up |
| Destroy On Collect | Removes the pickup once it’s used. Turn it off for hazards that hurt on every touch |
| On Collected | Fires when it’s picked up, with the object that picked it up |
💡 Good to Know
- The object that touches it needs a
Healthon itself or a parent. - Damage from a pickup is blocked by Invincibility. Healing isn’t.
- With Destroy On Collect on, the pickup also disappears when it hits something without a Rigidbody, like the floor.
Tip
Step by step: Create Health and Damage Pickups. For ammo or power-ups, make your own pickup.