bevy/release-content/migration-guides/extract-pointer-input-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

11 lines
392 B
Markdown

---
title: Extract `PointerInputPlugin` members into `PointerInputSettings`
pull_requests: [19078]
---
Toggling mouse and touch input update for picking should be done through
the `PointerInputSettings` resource instead of `PointerInputPlugin`.
To initialize `PointerInputSettings` with non-default values, simply add
the resource to the app using `insert_resource` with the desired value.