13 releases (7 breaking)
0.20.0 | Jul 6, 2024 |
---|---|
0.19.1 | Jun 21, 2024 |
0.18.0 | Mar 5, 2024 |
0.17.0 | Nov 10, 2023 |
0.2.0 | Jul 7, 2023 |
#2350 in Game dev
5,749 downloads per month
Used in 8 crates
(2 directly)
78KB
1.5K
SLoC
A picking backend for bevy_ui
.
Usage
This backend does not require markers on cameras or entities to function. It will look for any pointers using the same render target as the UI camera, and run hit tests on the UI node tree.
Important Note
This backend completely ignores FocusPolicy
. The design of bevy ui's
focus systems and the picking plugin are not compatible. Instead, use the Pickable
component
to customize how an entity responds to picking focus.
Implementation Notes
- Bevy ui can only render to the primary window
- Bevy ui can render on any camera with a flag, it is special, and is not tied to a particular camera.
- To correctly sort picks, the order of bevy UI is set to be the camera order plus 0.5.
Dependencies
~34–71MB
~1.5M SLoC