Make sprite picking opt-in#17842
Conversation
|
Related PR: #17348 |
|
I think having the ability to opt-out is still valuable (e.g. debugging).
Edit: woops, it's late and I didn't fully think the above solution through, perhaps there's still a way to add opt-out behavior? |
|
I think there is still a way to make it opt-out but it hurts performance and potential footgun. |
|
I think the best way for users to restore opt-out behavior (e.g. during debugging) is to just add an observer of their own, and add the required component automatically. There's no need for a dedicated setting for that. |
|
I looked over this update (and the preceding) and it all makes sense. I ran the |
# Objective - Docs in sprite picking plugin / example contain outdated information. References: - Sprite picking now always require `Picking` - bevyengine#17842 - Transparency pass-through added - bevyengine#16388 ## Solution - Fix the docs.
Objective
Fix #17108
See #17108 (comment)
Solution
&PickableinsteadOption<&Pickable>Testing
sprite_pickingexample and everything still workMigration Guide
Pickablecomponent when using sprite picking.