Slicing support for texture atlas#12059
Conversation
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
2 similar comments
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
|
The generated |
56dca72 to
510ed67
Compare
pablo-lua
left a comment
There was a problem hiding this comment.
I don't really like the fact that there is a duplicate code between ui slice and sprite slice, but that can be a follow up in the future.
Just a couple mispelling here, LGTM
|
@ManevilleF can you format this when you get a chance? |
Head branch was pushed to by a user without write access
|
@alice-i-cecile Done ! |
# Objective The docs say that atlas and slicing are incompatible, but they are now compatible after #12059. ## Solution Update the docs.
# Objective Follow up to bevyengine#11600 and bevyengine#10588 bevyengine#11944 made clear that some people want to use slicing with texture atlases ## Changelog * Added support for `TextureAtlas` slicing and tiling. `SpriteSheetBundle` and `AtlasImageBundle` can now use `ImageScaleMode` * Added new `ui_texture_atlas_slice` example using a texture sheet <img width="798" alt="Screenshot 2024-02-23 at 11 58 35" src="https://github.com/bevyengine/bevy/assets/26703856/47a8b764-127c-4a06-893f-181703777501"> --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Pablo Reinhardt <126117294+pablo-lua@users.noreply.github.com>
# Objective The docs say that atlas and slicing are incompatible, but they are now compatible after bevyengine#12059. ## Solution Update the docs.
Follow up to bevyengine#11600 and bevyengine#10588 bevyengine#11944 made clear that some people want to use slicing with texture atlases * Added support for `TextureAtlas` slicing and tiling. `SpriteSheetBundle` and `AtlasImageBundle` can now use `ImageScaleMode` * Added new `ui_texture_atlas_slice` example using a texture sheet <img width="798" alt="Screenshot 2024-02-23 at 11 58 35" src="https://github.com/bevyengine/bevy/assets/26703856/47a8b764-127c-4a06-893f-181703777501"> --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: Pablo Reinhardt <126117294+pablo-lua@users.noreply.github.com>
Objective
Follow up to #11600 and #10588
#11944 made clear that some people want to use slicing with texture atlases
Changelog
TextureAtlasslicing and tiling.SpriteSheetBundleandAtlasImageBundlecan now useImageScaleModeui_texture_atlas_sliceexample using a texture sheet