Roofen-Game
  • Welcome to Roofen Game
  • Frameworks
    • Common Stat
      • Demo
      • 🚀 Quick Start Guide
      • Runtime
      • Action
      • Formula
      • Examples
      • Debugger
      • FAQ
      • Version Update
      • FutureDirection
    • RToDo
  • Survivors Roguelike Kit
    • Quick Start
    • Core Concepts Overview
      • Scene Concepts
      • Stat Concepts
      • Skill Concepts
    • Adding a New Playable Character
    • Adding a New Enemy
    • Adding a New Stage Configuration
    • Adding a New Map Configuration
    • Adding a New Level
    • Adding a New Attack Skill
    • Adding a New Buff
    • Configuring the Exp System
    • Damage Numbers Display Guide
    • Upcoming Features Preview
    • Release Notes
  • RSOFramework
Powered by GitBook
On this page
  • 1. Locate the Prefab
  • 2. Configure Movement and Timing
  • 3. Customize Text Appearance
  1. Survivors Roguelike Kit

Damage Numbers Display Guide

This section explains how to configure the floating damage-number popups in your game.

PreviousConfiguring the Exp SystemNextUpcoming Features Preview

Last updated 23 days ago

1. Locate the Prefab

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

    Assets/RGame/RoguelikeKit/Prefabs/DamagePopup.prefab
  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.

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.