![]() # Objective The UI can only target a single view and doesn't support `RenderLayers`, so there doesn't seem to be any need for UI nodes to require `ViewVisibility` and `VisibilityClass`. Fixes #17400 ## Solution Remove the `ViewVisibility` and `VisibilityClass` component requires from `Node` and change the visibility queries to only query for `InheritedVisibility`. ## Testing ```cargo run --example many_buttons --release --features "trace_tracy"``` Yellow is this PR, red is main. `bevy_render::view::visibility::reset_view_visibility` <img width="531" alt="reset-view" src="https://github.com/user-attachments/assets/a44b215d-96bf-43ec-8669-31530ff98eae" /> `bevy_render::view::visibility::check_visibility` <img width="445" alt="view_visibility" src="https://github.com/user-attachments/assets/fa111757-da91-434d-88e4-80bdfa29374f" /> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |