Hitpoint

Hitpoint pops up a floating number, such as the damage of a hit or +25 from a pickup. The number faces the camera and disappears after a moment.

Add Component: Glowing Rifts > Misc > Hitpoint

๐Ÿงฑ Setup

  1. Add Hitpoint to the object that gets hit.
  2. Assign a number prefab with a TextMeshPro text. The package has one in Examples/Common/Prefabs/Hitpoint.prefab.
  3. Hook the Health’s On Damage Data Received to Hitpoint.ShowDamage.

๐Ÿ“ Settings

FieldWhat it does
LifetimeSeconds before the number disappears
HitpointThe number prefab

๐ŸŽฎ Actions

MethodWhat it does
ShowDamage(DamageData)Shows the damage where the hit landed
ShowText(string)Shows any text, such as +25 or Blocked

Tip

Step by step: Show Damage Numbers.