Skip to main content

Popping Text


Popping Text

Popping Text is the runtime floating combat text feedback used for damage/heal numbers. It is configured from FloatingCombatTextSettings and displayed by bar runtime modules.


Typical Flow

  1. Configure one or more floating text styles by UID.
  2. Enable Show Floating Combat Text in BarSettings when needed.
  3. Tune animation curves for speed, arc, scale, and fade.

PopNumberText API

PopNumberText spawns the floating number using a style UID from FloatingCombatTextSettings.

World-Space Health Bar (Overhead)

Call:

HealthBar.PopNumberText(string _uid, int _num);

Typical usage:

public HealthBar EnemyBar;

void DealDamage()
{
EnemyBar.PopNumberText("FloatingCombatText0", 42);
}

Static (Screen-Space) Bar

Call:

BarUI.PopNumberText(string _uid, int _num);

Typical usage:

public BarUI PlayerBar;

void DealDamage()
{
PlayerBar.PopNumberText("FloatingCombatText0", 42);
}

Best Practices

  • Keep visual language consistent (color = meaning).
  • Limit text density in fast AOE scenarios.
  • Use shorter lifetime and moderate randomness for clarity.