-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Remove Internal component
#21623
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
Remove Internal component
#21623
Conversation
| pub fn despawn_entities_on_exit_state<S: States>( | ||
| mut commands: Commands, | ||
| mut transitions: MessageReader<StateTransitionEvent<S>>, | ||
| // TODO: Use `AllowAll` once it exists: https://github.com/bevyengine/bevy/issues/21615 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this todo removed? reading the related issue/PR, it sounds like the intent to completely bypass the default query filters here once that becomes possible to express in a system remains.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that we should be using AllowAll here even after #21615 is implemented. The behavior is too surprising and will mess with people's e.g. prefab systems that are built using disabling components.
|
This should also close #21363, since |
# Objective Despite initially advocating for its inclusion in bevyengine#20204, I've been increasingly unconvinced by the edge cases and user-facing complexity and surprise that `Internal` brings. Accidental queries are quite hard to write, and the entitiy-inspector concerns are really a UX problem for each tool to solve that `Internal` doesn't help with. @cart feels similarly: as a result I'm marking this PR as X-Blessed. Closes bevyengine#21363. ## Solution - Remove `Internal` as a type. - Follow the compiler errors to remove all references. - Write a migration guide.
Objective
Despite initially advocating for its inclusion in #20204, I've been increasingly unconvinced by the edge cases and user-facing complexity and surprise that
Internalbrings.Accidental queries are quite hard to write, and the entitiy-inspector concerns are really a UX problem for each tool to solve that
Internaldoesn't help with.@cart feels similarly: as a result I'm marking this PR as X-Blessed.
Closes #21363.
Solution
Internalas a type.