Skip to content

Update to bevy 0.19#170

Merged
djeedai merged 4 commits into
djeedai:mainfrom
spebern:bevy-0.19
Jun 28, 2026
Merged

Update to bevy 0.19#170
djeedai merged 4 commits into
djeedai:mainfrom
spebern:bevy-0.19

Conversation

@spebern

@spebern spebern commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Bumps the bevy dependency from 0.18 to 0.19 and fixes the resulting breakage.

Library

  • EntityCommand gained an associated type Out; added type Out = (); to the 10 transform command impls.
  • Components::{resource_id, get_resource_id} renamed to {component_id, get_id}.
  • Assets::get_mut now returns AssetMut; the internal asset resolver uses get_mut_untracked (it already does its own change detection via filter_map_unchanged).

Tests

  • SystemState::get_mut now returns a Result (.unwrap()).
  • Asset-lens test helpers use Assets::get_mut_untracked.

Examples

  • TextFont::{font, font_size} are now FontSource/FontSize (.into()).
  • TextLayout::new_with_justify removed; replaced with a struct literal.
  • AmbientLight is now a per-camera component and GlobalAmbientLight is the global resource — the ambient_light example animates GlobalAmbientLight, preserving the resource-animation intent.
  • Hdr moved to bevy::camera.

Also bumps the bevy-inspector-egui dev-dependency 0.36 → 0.37.

All 63 tests pass and every example compiles against bevy 0.19.

Bump the bevy dependency 0.18 -> 0.19 and fix all resulting breakage
across the library, tests, examples, and benchmarks.

Library:
- EntityCommand gained an associated `type Out`; add `type Out = ();` to
  the 10 transform command impls.
- Components::{resource_id,get_resource_id} renamed to {component_id,get_id}.
- Assets::get_mut now returns AssetMut; use get_mut_untracked for &mut A.

Tests:
- SystemState::get_mut now returns Result (unwrap).
- Assets::get_mut_untracked in test helpers.

Examples:
- TextFont::{font,font_size} are now FontSource/FontSize (.into()).
- TextLayout::new_with_justify removed; use a struct literal.
- AmbientLight is now a per-camera component and GlobalAmbientLight is the
  global resource; the ambient_light example animates GlobalAmbientLight.
- Hdr moved to bevy::camera.

Also bump the bevy-inspector-egui dev-dependency 0.36 -> 0.37.
@extrawurst

Copy link
Copy Markdown
Contributor

closes #169

@Cyannide Cyannide mentioned this pull request Jun 25, 2026

@djeedai djeedai left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the asset change detection to only trigger if the asset is actually modified by the animation (that is, by Lens::lerp() itself).

@djeedai djeedai merged commit 5e3d0c9 into djeedai:main Jun 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants