aevyrie / bevy_mod_picking

Picking and pointer events for Bevy.
https://crates.io/crates/bevy_mod_picking
Apache License 2.0
791 stars 174 forks source link

Bevy 0.12 #276

Closed TristanCacqueray closed 11 months ago

TristanCacqueray commented 12 months ago

This is blocked by https://github.com/aevyrie/bevy_eventlistener/pull/11 and https://github.com/aevyrie/bevy_mod_raycast/pull/100 and https://github.com/dimforge/bevy_rapier/pull/439

nametable commented 12 months ago

Found a few problems with the bevy_sprite_picking backend in 0.12. Basically ComputedVisibility -> ViewVisibility and size() now returns a UVec2 instead of a Vec2, after fixing those, the sprite backend works for me in 0.12. Here's the changes I made to the backend (@TristanCacqueray I can PR to you or you can just snag the simple changes): https://github.com/nametable/bevy_mod_picking/commit/834d6f2853f86039d5fa4411071dbb327e791b3f

TristanCacqueray commented 12 months ago

Thanks @nametable, to be honest, I am only using the backend for ui-navigation.

tungtose commented 12 months ago

Tested with bevy_sprite_picking backend

aevyrie commented 11 months ago

Thanks for the contribution!