bevy-ui-text

Installation
SKILL.md

Bevy UI text

When to use

Load this when a UI node or a 2D world label shows a string. Layout stays on bevy-ui-layout.

ECS shape

  • UI: spawn Text on an entity. Text requires Node, TextFont, TextColor, and TextLayout. The string on Text is the first span.
  • Feature: bevy_text ships with DefaultPlugins. The default_font feature embeds a default ASCII font, so a Text with no custom Font handle still draws.
  • World text: Text2d requires TextFont, TextColor, TextLayout, TextBounds, Anchor, and Transform. Text2dShadow offsets a second copy of the glyphs.
  • Systems: the engine runs update_text2d_layout in PostUpdate after the string or style changes. Game systems write Text, Text2d, TextSpan, TextFont, and TextColor. They do not run a second layout pass.

Text is the HUD string. Node places it. One system owns later edits to that string.

#[derive(Component)]
struct ScoreLabel;
Installs
16
GitHub Stars
889
First Seen
Oct 11, 2026