> For the complete documentation index, see [llms.txt](https://roogame.gitbook.io/roogame/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roogame.gitbook.io/roogame/survivors-roguelike-kit/damage-numbers-display-guide.md).

# Damage Numbers Display Guide

## 1. Locate the Prefab

1. In Unity’s **Project** window, navigate to:

   ```
   Assets/RGame/RoguelikeKit/Prefabs/DamagePopup.prefab
   ```

   <figure><img src="/files/ZH9NxBRzjZGJoG9hhIND" alt=""><figcaption></figcaption></figure>
2. 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.

  <figure><img src="/files/kkVFschCJhtodQEN6dVN" alt="" width="339"><figcaption></figcaption></figure>

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:

1. Expand the **DamagePopup** GameObject hierarchy in the prefab.
2. Select the child object with the **TextMesh** component.
3. 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.
