Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Objective It would be convenient to be able to quickly deny or allow all components and resources on a `DynamicSceneBuilder` with a single method call. Context: #15210 renamed `{allow/deny}_all` to `{allow/deny}_all_components`. ## Solution Added two new methods to `DynamicSceneBuilder`, `allow_all` and `deny_all`, which affect both the component and resource filters. ## Showcase ### Before ```rust let builder = DynamicSceneBuilder::from_world(world) .deny_all_components() .deny_all_resources(); ``` ### After ```rust let builder = DynamicSceneBuilder::from_world(world).deny_all(); ```
- Loading branch information