![]() # Objective Fix https://github.com/bevyengine/bevy/issues/17108 See https://github.com/bevyengine/bevy/issues/17108#issuecomment-2653020889 ## Solution - Make the query match `&Pickable` instead `Option<&Pickable>` ## Testing - Run the `sprite_picking` example and everything still work ## Migration Guide - Sprite picking are now opt-in, make sure you insert `Pickable` component when using sprite picking. ```diff -commands.spawn(Sprite { .. } ); +commands.spawn((Sprite { .. }, Pickable::default()); ``` |
||
---|---|---|
.. | ||
debug_picking.rs | ||
mesh_picking.rs | ||
simple_picking.rs | ||
sprite_picking.rs |