mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
d878e2f8bd
# 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(); ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |