![]() ## 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`. |
||
---|---|---|
.. | ||
axis.rs | ||
button_input.rs | ||
common_conditions.rs | ||
gamepad.rs | ||
gestures.rs | ||
keyboard.rs | ||
lib.rs | ||
mouse.rs | ||
touch.rs |