bevy-migration-0-18-to-0-19
Skill16 starsChanged 3 months agoMITView on GitHub
Use when upgrading from Bevy 0.18 to Bevy 0.19, fixing resource/query conflicts, replacing `SceneRoot` with `WorldAssetRoot`, migrating text to `FontSource` and `FontSize`, converting render-graph nodes to render systems, replacing lifecycle `Replace` with `Discard`, or updating asset load builders, lights, input focus, and Cargo features.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- bevy-a11ySkill
- bevy-animationSkill
- bevy-assetsSkill
- bevy-audioSkill
- bevy-camerasSkill
- bevy-captureSkill
- bevy-cargo-featuresSkill
- bevy-core-conceptsSkill
- bevy-custom-assetsSkill
- bevy-diagnostics-profilingSkill
- bevy-ecs-componentsSkill
- bevy-ecs-queriesSkill
- bevy-ecs-systemsSkill
- bevy-fluentSkill
- bevy-input-actionsSkill
- bevy-migration-0-17-to-0-18Skill
- bevy-pbr-materialsSkill
- bevy-physicsSkill
- bevy-portingSkill
- bevy-renderingSkill
- bevy-save-loadSkill
- bevySkill
- bevy-testingSkill
- bevy-uiSkill
- bevy-vfxSkill
- bevy-voxel-dataSkill
- bevy-voxel-pipelineSkill
- bevy-voxel-runtimeSkill
- bevy-wasm-webgpuSkill
- similarity-rsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Update the engine and every Bevy ecosystem crate together.
- Distinctive: line 26
Update scenes, text, assets, rendering, lights, and UI focus.
- Very specific: line 91
Do not add Without<IsResource> mechanically to every query.
- Very specific: line 137
Treat duplicate Bevy majors/minors as a compatibility problem, not harmless Cargo noise.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bevy 0.18 → 0.19 migration
Bevy 0.19.0 was released on 2026-06-19. Target bevy = "0.19" and validate
against the latest 0.19 patch release. Apply the official migration guide from top
to bottom; this skill prioritizes changes most likely to affect game code and sibling
skills.
First-pass checklist
- Update the engine and every Bevy ecosystem crate together. A crate built on Bevy 0.18 cannot share ECS/assets/render types with Bevy 0.19.
- Rebuild with the project's real
default-featuresand target triples. - Fix resources and broad-query conflicts before chasing secondary system errors.
- Update scenes, text, assets, rendering, lights, and UI focus.
- Regenerate persisted animation target IDs and serialized world data.
- Compile representative examples and exercise native and web/platform builds.
High-impact changes
| Bevy 0.18 | Bevy 0.19 |
#[derive(Component, Resource)] | Split into distinct types; Resource: Component |
broad query plus Res<T> | Filter resource entities with Without<IsResource> when appropriate |
init_non_send_resource | init_non_send |
SceneRoot / DynamicScene | WorldAssetRoot / DynamicWorld |
old world serialization in bevy_scene | bevy_world_serialization |
TextFont { font: Handle<_>, font_size: f32 } | FontSource and FontSize |
TextLayout::new_with_justify | TextLayout::justify |
LoadContext::loader() | LoadContext::load_builder() |
custom Reader with AsyncSeekForward | required Reader::seekable() |
ViewNode and camera render-graph nodes | systems in Core2d / Core3d schedules |
Replace, on_replace | Discard, on_discard |
set_executor_kind(ExecutorKind::...) | set_executor(...) with an executor instance |
light shadows_enabled | shadow_maps_enabled plus optional contact_shadows_enabled |
Atmosphere on a camera | separate bevy::light::Atmosphere entity |
public InputFocus.0 | get, set, and clear methods |
The render-node API is gone, but the top-level non-camera schedule named
bevy::render::renderer::RenderGraph still exists. Do not replace that schedule name
blindly.
Text and scenes
TextFont {
font: asset_server.load("fonts/FiraSans-Bold.ttf").into(),
font_size: FontSize::Px(24.0),
..default()
}
commands.spawn(WorldAssetRoot(
asset_server.load("models/level.glb#Scene0"),
));Parley/fontique now provide shaping and fallback. Installed-family discovery requires
the system_font_discovery feature. The old serialization system was renamed to make
room for BSN; glTF roots still use WorldAssetRoot, not BSN scene types.
See text and fonts and scene serialization.
Resources and generic queries
Res<T> and ResMut<T> remain the normal APIs. The semantic change is that resource
values live on singleton entities and #[derive(Resource)] also implements
Component. As a result, broad component queries can conflict with resource access or
unexpectedly include resource entities.
fn inspect_entities(
entities: Query<EntityRef, Without<IsResource>>,
settings: Res<GameSettings>,
) {
// ...
}Do not add Without<IsResource> mechanically to every query; narrow only queries that
are truly intended to inspect ordinary entities. See
resources as components.
Features and ecosystem crates
[dependencies]
bevy = { version = "0.19", default-features = false, features = [
"3d", "ui", "audio"
] }audiois no longer implied by2d,3d, orui.uiis no longer implied by2dor3d.- Profile collections must be used with
default-features = false; otherwise default features remain enabled by Cargo feature unification. - Native controller events need the
bevy_gilrsbackend when defaults are disabled. bevy_capture 0.6andbevy_hanabi 0.19target Bevy 0.19. Verify every other dependency's declared Bevy version rather than guessing from its crate version.
Other source migrations
InputFocusis initialized byDefaultPlugins. In Bevy 0.19.1, callfocus.set(entity, FocusCause::Navigated); the one-argument 0.19.0 example is patch-stale.- Recalculate serialized
AnimationTargetIdvalues: its hash/ID algorithm changed. - A glTF
#Material0label now returnsGltfMaterial; append/stdfor aHandle<StandardMaterial>when PBR conversion is enabled. - Advanced loads now go through
AssetServer::load_builder; nested loads useLoadContext::load_builder. EasyScreenRecordPluginmanual literals needoutput_dir;..default()already supplies it.FeathersPluginbecameFeathersCorePlugin, whileFeathersPluginsremains the plugin group.
See rendering, assets, and APIs.
Validate the migration
cargo check --all-targets
cargo test
cargo tree -d | rg 'bevy(_| )'Treat duplicate Bevy majors/minors as a compatibility problem, not harmless Cargo
noise. Also build every supported feature profile and target; a default desktop build
does not validate default-features = false or WASM.
See also
- Official Bevy migration guide
bevy-cargo-featuresbevy-renderingbevy-uibevy-assetsbevy-ecs-queries
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

