Index of every page on this site: llms.txt
All skills
Run it yourself

Bevy 0.20 UI and world text: Text, Text2d, TextSpan, TextFont, TextColor, TextLayout, TextShadow, Text2dShadow. Use when a HUD node or a 2D nameplate shows a string. Keywords: Bevy, text, UI, Text, TextSpan, bevy_text, Text2d, TextFont.

Use this Skill: https://skilld.dev/gh/thedivergentai/game-dev-agentic-skills/bevy-ui-text

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesecs-ownership.md

≈269 tokens on demand. Your agent reads this file only when SKILL.md points to it.

ECS ownership - bevy-ui-text

Who owns each piece of state, and on which schedule.

Target: Bevy 0.20+.

Need Owner Schedule
Per-entity Component + Query Update or FixedMain
App-wide Resource insert in Startup
Spawn Commands Startup or the runtime schedule
Ordered mutation .chain() same schedule
Plugin setup Plugin build before run
The string on one label Text or Text2d the one system that formats it
A styled run inside that string child TextSpan the system that spawns or rewrites that span

Score is the resource. ScoreLabel marks the one Text that may change. write_score is the only system that mutably queries that Text.

#[derive(Component)]
struct ScoreLabel;

#[derive(Resource)]
struct Score(u32);

fn write_score(score: Res<Score>, mut labels: Query<&mut Text, With<ScoreLabel>>) {
    if !score.is_changed() {
        return;
    }
    for mut text in &mut labels {
        text.0 = format!("Score {}", score.0);
    }
}

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides documentation and code examples for working with UI and world text in the Bevy game engine (version 0.20). It includes best practices for ECS ownership and component management. No security issues were detected.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at db004d7. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated last month

README badge

README badge for thedivergentai/game-dev-agentic-skills/bevy-ui-text