deifactor / extol_sprite_layer

Explicitly set sprite layers for sprites in Bevy games.
17 stars 6 forks source link

bevy_mod_picking compatibility #6

Open UkoeHB opened 4 months ago

UkoeHB commented 4 months ago

This crate is not currently compatible with bevy_mod_picking because it clears GlobalTransform in First, while bevy_mod_picking needs the GlobalTransform in PreUpdate (there is a PickSet::Backend system set that runs there for all the backends).

Can you move transform clearing to PreUpdate and put it in a system set?

deifactor commented 4 months ago

(Note that until I resolve this you can work around it just by doing the registration yourself).

I'm a bit uncertain as to what the right thing to do here is, since there very well might be other things that rely on it running in First. You can always add the systems manually, of course. Maybe a flag for bevy_mod_picking compat?

UkoeHB commented 4 months ago

I'm a bit uncertain as to what the right thing to do here is, since there very well might be other things that rely on it running in First.

You could make the schedule where it runs configurable in the plugin.