bevy_simple_rich_text
A tiny, unambitious rich text helper for bevy_ui with a simple bbcode-inspired syntax.
Usage
// Register style tags by spawning `StyleTag` with `TextFont`, `TextColor`,
// and any other arbitrary Component.
commands.spawn;
commands.spawn;
// And use them
commands.spawn;
See also examples/advanced.rs.
Performance
Modifying a RichText completely rebuilds the TextSpans, so it's probably pretty slow.
But you can attach arbitrary marker components to styles to achieve fast animations.
Compatibility
bevy_simple_rich_text |
bevy |
|---|---|
0.3 |
0.16 |
0.2 |
0.15 |
0.1 |
0.14 |
Contributing
Please feel free to open a PR. The goal of this project isn't to support every feature or use-case, but to be good enough for simple projects while remaining very maintainable.
Please keep PRs small and scoped to a single feature or fix.