Sprites now support atlases, scale, rotation, and anchors.
All egui widgets, including side panels, are now supported.
bevy_mod_raycast and bevy_rapier backends are now even simpler, no longer requiring any
marker components to function.
More flexible picking behavior and bevy_ui compatibility with the updated Pickable component.
Better support for cameras settings such as is_active, RenderLayers, and show_ui.
Dependencies
Changed: Removed dependencies on bevy and instead depend on bevy subcrates (e.g. bevy_ecs)
directly. This reduces total dependency count, but more importantly allows compilation of each
picking crate to start before bevy finishes.
Changed: bevy_ui has been removed as a core dependency, and is now completely optional.
API Improvements
Changed: The plugin no longer respects bevy_ui's FocusPolicy because it was not flexible enough.
This has been replaced with new fields on the Pickable component. You can use this to override
the behavior of any entity in picking.
This allows you to decide if that entity will block lower entities (on by default), and if that
entity should emit events and be hover-able (on by default).
To make objects non-pickable, instead of removing the Pickable entity, use the new const value
Pickable::IGNORE.
Changed: The PointerInteraction component, which is added to pointers and tracks all entities
being interacted with has changed internally from a hashmap of entities and their Interaction to
a sorted list of entities and HitData, sorted by depth. This better reflects how pointer data
would be expected to work, and makes it easier to find the topmost entity under each pointer.
Added: get_nearest_hit method added to PointerInteraction
Changed: Moved PointerInteraction from the focus module to pointer.
Backend Improvements
Fixed: all backends now correctly check if a camera is_active before attempting hit tests.
Changed: PickLayer, which is used to order hits from backends that targets the same render
target, such as multiple render passes on the same window, has been changed from an isize to an
f32. This change was made to support bevy_ui, which is "special" and can be rendered on any
camera via a flag, instead of being rendered with its own camera. The bevy_ui backend now adds
0.5 to the camera order of any events emitted, which was not possible with an integer.
Sprite Backend
Added: support for sprite scale, rotation, and custom anchors.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps bevy_mod_picking from 0.15.0 to 0.16.0.
Release notes
Sourced from bevy_mod_picking's releases.
Changelog
Sourced from bevy_mod_picking's changelog.
... (truncated)
Commits
9e221f7
don't specify version for self dev depf8a8e0c
fix deps for dev deps94e7144
Update rust.yml46ba7ad
v0.16 preped28965
bump mod_raycast and switch to bevy ..default()6dfad7a
enable all features for docs.rsa47b458
Fix typos351addc
Update README.md97c0fc3
Update rust.yml05d1612
improve egui backendDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show