mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
cea7db1050
# Objective - Prevent the need to have a system that synchronizes sprite sizes with their images ## Solution - Read the sprite size from the image asset when rendering the sprite - Replace the `size` and `resize_mode` fields of `Sprite` with a `custom_size: Option<Vec2>` that will modify the sprite's rendered size to be different than the image size, but only if it is `Some(Vec2)` |
||
---|---|---|
.. | ||
bevymark.rs | ||
bevymark_pipelined.rs |