-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to check if SelectablePickMesh is selected? #10
Comments
Good call, yeah, I didn't put much thought into exposing the pick information.
That sounds like the right approach to me! I'll add a public getter function. |
@guimcaballero Let me know if this change works for you. Edit: I'd love to see what you made when you get it working! |
@guimcaballero That is super cool! You should post that in the bevy discord showcase channel! |
I was playing around with this crate (pretty cool btw!). I'm trying to make the wasd keys move the current selected entity. My approach has been to make a system with
mut query: Query<&mut SelectablePickMesh>
, and then iterate over the query and check forselected
, but it turns out it's a private field and it can't be accessed.Is there another way of doing what I'm trying to do? Or should
selected
be marked as public?The text was updated successfully, but these errors were encountered: