-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slicing support for texture atlas #12059
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
TextureAtlas
slicing and tiling.SpriteSheetBundle
andAtlasImageBundle
can now useImageScaleMode
ui_texture_atlas_slice
example using a texture sheet