- Home
- Skills
- Game Development
- bevy_rui
Works with the AI Agents you already use
bevy_rui
Build Bevy 0.20.1 desktop apps, IDEs, and 9-slice game UIs in Rust with bevy_rui—24 widgets, 46 runnable examples, and zero legacy Bevy hallucinations.
$5
/moSubscription · cancel anytime
Secure checkout via Stripe
- Always the latest version
- Delivered live to your agent via MCP
- Cancel anytime, access ends at period end
bevy_rui
Example session with this skill installed
Create a Bevy 0.20.1 desktop settings window using bevy_rui with two tabs ("Audio" and "Graphics"), a master volume slider, a VSync checkbox, a Save button that logs when clicked, and live Update systems that print when the slider or checkbox changes.
- Read your context and instructions
- Compiled the bevy_rui
Created a complete, compiling
Bevy 0.20.1 + bevy_rui 0.1.7 settings window using RuiPlugin, tabs, slider, checkbox, On<Activate> observers, and reactive ECS Changed<T> queries.
1. Cargo.toml
[package]
name = "bevy_rui_settings_demo"
version = "0.1.0"
edition = "2024"
[dependencies]
bevy = "0.20.1"
bevy_rui = "0.1.7"
2. src/main.rs
use bevy::{prelude::*, text::FontSize, ui_widgets::Activate};
use bevy_rui::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(RuiPlugin)
.add_systems(Startup, setup_ui)
.add_systems(Update, (on_slider_changed, on_checkbox_changed))
.run();
}
fn setup_ui(mut commands: Commands) {
commands.spawn(Camera2d);
commands.rui_root(
|s| {
s.justify_content = JustifyContent::Center;
s.align_items = AlignItems::Center;
},
|ui| {
ui.reborrow().window(
"Game Settings",
true,
|s| {
s.width = Val::Px(420.0);
s.left = Val::Auto;
s.top = Val::Auto;
},
|win, _| {
let mut w = win.reborrow();
w.reborrow().tabs(
0,
|s| {
s.width = Val::Percent(100.0);
s.height = Val::Px(190.0);
},
|tabs| {
tabs.tab(
"Audio",
false,
|n, _| {
n.padding = UiRect::all(Val::Px(12.0));
n.row_gap = Val::Px(10.0);
},
|tab| {
let mut t = tab.reborrow();
t.reborrow().label("Master Volume", |f, _| {
f.font_size = FontSize::Px(15.0);
});
t.reborrow().slider(0.0, 100.0, 80.0, |s| {
s.width = Val::Percent(100.0);
});
},
);
tabs.tab(
"Graphics",
false,
|n, _| {
n.padding = UiRect::all(Val::Px(12.0));
n.row_gap = Val::Px(10.0);
},
|tab| {
tab.reborrow().checkbox("Enable VSync", true, |_| {});
},
);
},
);
w.reborrow()
.button(
|s| {
s.width = Val::Percent(100.0);
s.height = Val::Px(38.0);
s.margin = UiRect::top(Val::Px(10.0));
},
|btn| {
btn.reborrow()
.label("Save Settings", |f, _| f.font_size = FontSize::Px(15.0))
.insert(RuiThemeElement::ButtonText);
},
)
.observe(|_: On<Activate>| {
info!("Settings saved!");
});
},
);
},
);
}
fn on_slider_changed(q: Query<&RuiSlider, Changed<RuiSlider>>) {
for slider in &q {
info!("Master Volume: {:.0}%", slider.value);
}
}
fn on_checkbox_changed(q: Query<&RuiCheckbox, Changed<RuiCheckbox>>) {
for cb in &q {
info!("VSync enabled: {}", cb.checked);
}
}
Next Steps
- Run
cargo checkandcargo runto launch the interactive window. - To restyle this window with 9-slice game textures, insert a
RuiThemeresource inStartupand configureimage_panelandimage_button_*.
Subscription · always the latest version
- Secure checkout via Stripe
- Cancel anytime
- Delivered live via MCP
About this skill
bevy_rui equips your AI coding agent with complete mastery of the bevy_rui retained-mode UI widget library for Bevy 0.20.1 (Rust edition 2024).
Why You Need This Skill
LLMs routinely hallucinate outdated Bevy 0.14/0.15 UI APIs (TextBundle, ButtonBundle, Parent, Trigger<Pointer<Click>>, EventReader, bare f32 font sizes). This skill eliminates those errors by grounding your agent in Bevy 0.20.1 patterns and 46 compiling examples.
What's Included (100% Self-Contained)
SKILL.mdGolden Rules: Enforces.reborrow(),On<Activate>observers,FontSize::Px(...),MessageReader,ChildOf/Children, and reactive ECS state queries.- 24 Widget Reference (
references/widgets-reference.md): Exact signatures and state components foraccordion,button,canvas_layer,checkbox,clipboard,code_editor,color_picker,context_menu,debug_colors,docks,dropdown,file_dialog,label,layout,menu,progress_bar,resizer,scrollview,slider,tabs,textbox,tooltip,viewport, andwindows. - Desktop & IDE Guide (
references/app-and-ide-guide.md): Multi-pane dock splits, menu bars, syntax-highlightedcode_editor, and live 2D/3D cameraviewportpanels. - 9-Slice Game UI Guide (
references/game-ui-9slice-guide.md): CompleteRuiTheme9-slice texture recipes (TextureSlicer,ImagePlugin::default_nearest(), contrast labels, and camera-targetedcanvas_layerHUDs). - 46 Runnable Examples (
examples/): 23 desktop/app examples (example_<widget>.rs) + 23 9-slice game UI examples (example_game_<widget>.rs) so your agent always has working, compilable code to reference. - Optional Live WebMCP Companion: Pair with
https://mcp.robalexa.com/mcpfor live multi-version AST inspection and project scaffolding.
Crate & Docs
- crates.io: https://crates.io/crates/bevy_rui
- docs.rs: https://docs.rs/bevy_rui/0.1.7/bevy_rui/
- Skill Docs: https://robalexa.com/bevy_rui_mcp
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Game Development.
Requires bevy_rui 0.1.7+ and Rust 2024 edition. Does not include raw image assets for 9-slice themes.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
- Rust (edition 2024)CargoBevy 0.20.1
need a ttf font and the textures. I use the textures from https://kenney-assets.itch.io/ui-pack