bevy/crates/bevy_sprite/src
JaySpruce 058497e0bb
Change Commands::get_entity to return Result and remove panic from Commands::entity (#18043)
## Objective

Alternative to #18001.

- Now that systems can handle the `?` operator, `get_entity` returning
`Result` would be more useful than `Option`.
- With `get_entity` being more flexible, combined with entity commands
now checking the entity's existence automatically, the panic in `entity`
isn't really necessary.

## Solution

- Changed `Commands::get_entity` to return `Result<EntityCommands,
EntityDoesNotExistError>`.
- Removed panic from `Commands::entity`.
2025-02-27 21:05:16 +00:00
..
mesh2d Change Commands::get_entity to return Result and remove panic from Commands::entity (#18043) 2025-02-27 21:05:16 +00:00
render Allowed creating uninitialized images (for use as storage textures) (#17760) 2025-02-10 22:22:07 +00:00
texture_slice Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
lib.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
picking_backend.rs Make sprite picking opt-in (#17842) 2025-02-24 21:09:39 +00:00
sprite.rs Proportional scaling for the sprite's texture. (#17258) 2025-01-24 18:24:02 +00:00