Damage Numbers Display Guide
This section explains how to configure the floating damage-number popups in your game.
1. Locate the Prefab
In Unity’s Project window, navigate to:
Assets/RGame/RoguelikeKit/Prefabs/DamagePopup.prefab
Select DamagePopup.prefab to view its properties in the Inspector.
2. Configure Movement and Timing
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.
3. Customize Text Appearance
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.
Last updated