# Objective add a quick shorthand for creating a sprite with an custom size. This is often desired when working with custom units or scaled sprites and allows for a cleaner syntax in those cases/ ## Solution Implemented a `sized` function on the Sprite struct which creates a Sprite, sets the custom size and leaves the rest at their default values --- ## Changelog - Added `Sprite::sized(custom_size: Vec2)` |
||
|---|---|---|
| .. | ||
| mesh2d | ||
| render | ||
| texture_slice | ||
| bundle.rs | ||
| dynamic_texture_atlas_builder.rs | ||
| lib.rs | ||
| sprite.rs | ||
| texture_atlas_builder.rs | ||
| texture_atlas.rs | ||