-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Change Interaction::None to NoInteraction #1583
Conversation
@alice-i-cecile mentioned the issue of |
That's the expected behaviour. You never reach the
Not sure what that means. Is it a suggestion to implement Aside from that, renaming |
This was a comment by me in Discord, mentioning that it's very strange that the standard |
Hmm imo |
I'm down to consider alternatives, but I'd prefer it if they didn't have |
What if we solved this by adding and removing this as a sparse set component, then querying for the Option form? Much more feasible if we had #1613 though. |
That's not possible. |
The system that manages that could work differently, with an |
I think redesigning the api should be out of scope for this pr (which is just about naming). This probably won't be the last time the |
Closing for now. Feel free to discuss further here if you come up with alternative ideas. |
The
bevy::ui::Interaction
interaction enum has an unidiomaticInteraction::None
value. E.g. earlier I wanted to optionally query for interactions to a button entity, however matchingQuery<Option<&Interaction>, With<Button>
would never reach theNone
arm.