bevy/release-content/migration-guides/extract-picking-plugin-members.md
Lucas Franca 80b059c815
Extract members of PickingPlugin and PointerInputPlugin into new types (#19078)
# Objective

`PickingPlugin` and `PointerInputPlugin` were kinda weird being both a
plugin and a resource.

## Solution

Extract the resource functionality of `PickingPlugin` and
`PointerInputPlugin` into new resources

## Testing

`mesh_picking` and `sprite_picking`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
2025-07-07 19:40:25 +00:00

353 B

title pull_requests
Extract `PickingPlugin` members into `PickingSettings`
19078

Controlling the behavior of picking should be done through the PickingSettings resource instead of PickingPlugin.

To initialize PickingSettings with non-default values, simply add the resource to the app using insert_resource with the desired value.