Replies: 1 comment 1 reply
-
I should say, removing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm making a game where various things need to be selectable and clickable/pickable at various times. I've discovered that I can disable the pickable nature of a mesh by removing the
Pickable
component. I was hoping that I could remove the ability to select a mesh by removing thePickSelection
component, but this doesn't seem to be a thing.My logic was that since the
PickableBundle
adds thePickSelection
component only if theselection
feature is enabled, surely removing the component would remove the selection mechanism? Alas, no.Before I get myself stuck in an XY problem, this is what I'm trying to accomplish: I have a board game, and on a player's turn, they are able to select their pieces, and once they select a piece, I show "target" meshes on places they can move their piece to. I want these target meshes to be clickable/pickable in
bevy_mod_picking
, but not selectable. The idea is that I want to be able to react to the player choosing a target, but that mesh should not become selected (it's about to immediately get hidden anyway) and, maybe more importantly, the piece mesh should not become deselected by choosing the target!Any suggestions on how I can/should go about this would be greatly appreciated. I'll also take this opportunity to thank aevyrie and all contributors for this awesome Bevy plugin that made adding picking to my game an absolute breeze. ♥
Beta Was this translation helpful? Give feedback.
All reactions