Update to bevy 0.19#170
Merged
Merged
Conversation
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.
Contributor
|
closes #169 |
Closed
djeedai
approved these changes
Jun 27, 2026
djeedai
left a comment
Owner
There was a problem hiding this comment.
I fixed the asset change detection to only trigger if the asset is actually modified by the animation (that is, by Lens::lerp() itself).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the
bevydependency from 0.18 to 0.19 and fixes the resulting breakage.Library
EntityCommandgained an associatedtype Out; addedtype Out = ();to the 10 transform command impls.Components::{resource_id, get_resource_id}renamed to{component_id, get_id}.Assets::get_mutnow returnsAssetMut; the internal asset resolver usesget_mut_untracked(it already does its own change detection viafilter_map_unchanged).Tests
SystemState::get_mutnow returns aResult(.unwrap()).Assets::get_mut_untracked.Examples
TextFont::{font, font_size}are nowFontSource/FontSize(.into()).TextLayout::new_with_justifyremoved; replaced with a struct literal.AmbientLightis now a per-camera component andGlobalAmbientLightis the global resource — theambient_lightexample animatesGlobalAmbientLight, preserving the resource-animation intent.Hdrmoved tobevy::camera.Also bumps the
bevy-inspector-eguidev-dependency 0.36 → 0.37.All 63 tests pass and every example compiles against bevy 0.19.