Damage Numbers Display Guide
This section explains how to configure the floating damage-number popups in your game.
Last updated
This section explains how to configure the floating damage-number popups in your game.
Last updated
In Unity’s Project window, navigate to:
Select DamagePopup.prefab to view its properties in the Inspector.
MoveSpeed: Controls how fast the damage number floats upward (units per second).
Duration: Total lifetime of the popup (in seconds) before it disappears.
Adjust these values to achieve the desired pop-up speed and visibility duration.
All stylistic settings for the damage text—including font, size, color, and alignment—are handled by the TextMesh component on the prefab:
Expand the DamagePopup GameObject hierarchy in the prefab.
Select the child object with the TextMesh component.
In the Inspector, modify:
Font: Change to any imported font asset.
Character Size: Scale the text up or down.
Color: Set the RGBA color of the damage numbers.
Text: (For testing) enter sample text to preview style.
Tip: Use your font atlas or import custom bitmap fonts for a retro pixel look.