Damage numbers

Numbers and words drawn on top of the finished frame (after post effects, so bloom never smears them), the same in every render pipeline. They are pooled and steady play makes no garbage.

Number styles #

Four finished looks, one click each (the profile inspector's Number style buttons, or NumberStyles.Apply in code). Your font, sizes and colours per kind stay.

Style Look Criticals
Classic White with a light shine and a dark outline. Pop and shake.
Arcade Punch Hot fill fading to orange, thick plum outline, a punchy pop. Rays burst out behind the number; it leans.
Fantasy Relic Ivory into antique gold, charcoal outline, a gentle arc. A gold halo grows and fades.
Tactical Clean Crisp near-white, navy outline, a short slide with no bounce. Cyan corner brackets snap outwards.

The presets pick a style that suits them: Arcade, Cartoon and Idle and Mobile use Arcade Punch; Action RPG and Souls-like use Fantasy Relic; Shooter uses Tactical Clean; Minimal and Existing Game stay Classic. The styles work with Unity's built-in font and with any font you drop into Font (or your TextMesh Pro font, below); no fonts ship with Responsive FX.

Settings (Profile > Numbers) #

Setting What it does
Display as Number, Number And Icon, Icon, Word (the kind's word), None. Also per object under Overrides.
Motion Rise, Arc (pops up and falls to a side), Punch (pops big and settles), Slide, Stay.
Space Screen: always on top, the same size at any distance. World: sized by distance, and can hide behind walls.
Anchor Above the target (above its bar), at the hit point, or at its middle. Plus an offset.
Size Text height in pixels at 1080p; scales with the screen, each kind's size and the player's text size.
Font, Bold Any font asset in your project; empty uses Unity's built-in font. No fonts ship with Responsive FX.
Outline, Shadow, Shine A clean outline, a drop shadow, and a top-to-bottom shine.
Shade, Shade color A top-to-bottom gradient: the bottom of each letter is tinted (multiplied, so every kind keeps its colour).
Crit burst, Crit burst color Rays, a halo or brackets behind critical and killing numbers for a moment (transparent colour: the kind's colour).
Crit tilt Critical and killing numbers lean left or right by this many degrees (upright with Reduce Motion).
Lifetime, Distance, Spread, Pop How long, how far, how much sideways spread, how big the pop.
Combine window, Combine growth Hits within the window add up into one growing number that pops again on each hit.
Size by amount Bigger amounts show bigger numbers, up to Big Size at Big Amount.
Crit shake Critical and killing numbers shake for a moment.
Avoid overlap Numbers that would overlap push each other apart.
Follow target Numbers move with the target, or stay where they appeared.
Format, Decimals, Plus on heals 1234, 1,234 or 1.2K / 3.4M / 5.6B / 7.8T.
Hide behind walls, Wall layers World space only: a raycast from the camera every 0.1 s.
Max distance Numbers farther than this aren't shown.
Max on screen The oldest number makes way when the limit is reached.

Per kind (Profile > Kinds) #

Colour, colour-blind safe colour, word ("Miss", "Blocked"), suffix ("!" makes 123!), size, icon.

Numbers anywhere #

DamageNumbers.Show(position, 25, HitKind.Heal);            // a number, Action RPG style or a profile you pass
DamageNumbers.ShowText(position, "Level up!", HitKind.Status, myProfile);
DamageNumbers.Hidden = true;                              // hide them (for a cut scene)

Your TextMesh Pro font #

With TextMesh Pro in your project (it comes with Unity 6's UI package), add TextMesh Pro Numbers (Add Component > Responsive FX) to any object in the scene and drag in your TMP font asset and, if you like, a material preset (outline, glow, gradient). While it is enabled every number is shown with TextMesh Pro in your font, in world space, facing the camera; kinds, colours, words, formatting and sizes still come from your profiles. Turn it off and the Responsive FX draws its own numbers again. In 1.0 it shows one number per hit (it doesn't add hits into one growing number).

Your own text (UI Toolkit, your prefab) #

Set DamageNumbers.CustomDisplay to your own object implementing IDamageNumberDisplay. Responsive FX hands it every number with its text already worked out ("1.2K", "+25", "Miss"), its colour, size and icon. See Code.

When numbers are hidden #

The screen layer hides while the game is paused (Time.timeScale at 0 and not set by Responsive FX's own hitstop) and when HitFeedbackOverlay.Visible is false, for example while your own menu is open. Numbers from a scene are cleared when a new scene loads on its own.

Something unclear or wrong? Tell us · Get help