mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
21b3666abf
# Objective - TextureAtlasBuilder has some non-idiomatic methods. ## Solution - Refactor non-idiomatic methods --- ## Changelog - Renamed `TextureAtlasBuilder::finish()` to `TextureAtlasBuilder::build()` - Builder methods return `&mut Self` instead of `Self` ## Migration Guide ```diff - let mut texture_atlas_builder = TextureAtlasBuilder::default().padding(UVec2::default()).format(..); + let mut texture_atlas_builder = TextureAtlasBuilder::default(); + texture_atlas_builder.padding(UVec2::default()).format(..); - let (texture_atlas_layout, texture) = texture_atlas_builder.finish().unwrap(); + let (texture_atlas_layout, texture) = texture_atlas_builder.build().unwrap(); ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |