bevy/crates/bevy_ui/src
ickshonpe d76c782f39
Remove camera from UiBatch (#17663)
# Objective

A `TransparentUI` phase's items all target the same camera so there is
no need to store the current camera entity in `UiBatch` and ending the
current `UiBatch` on camera changes is pointless as the camera doesn't
change.

## Solution

Remove the `camera` fields from `UiBatch`, `UiShadowsBatch` and
`UiTextureSliceBatch`.
Remove the camera changed check from `prepare_uinodes`.

## Testing
The `multiple_windows` and `split_screen` examples both render UI
elements to multiple cameras and can be used to test these changes.

The UI material plugin already didn't store the camera entity per batch
and worked fine without it.
2025-02-24 20:55:30 +00:00
..
experimental Store UI render target info locally per node (#17579) 2025-02-10 07:27:58 +00:00
layout Parallel Transform Propagation (#17840) 2025-02-23 20:43:09 +00:00
render Remove camera from UiBatch (#17663) 2025-02-24 20:55:30 +00:00
widget Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
accessibility.rs Properly set accessible value on label nodes (#16418) 2024-11-17 18:10:41 +00:00
focus.rs Store UI render target info locally per node (#17579) 2025-02-10 07:27:58 +00:00
geometry.rs Fixing ValArithmeticError typo and unused variant (#17597) 2025-02-02 15:10:14 +00:00
lib.rs Add NodeImageMode to the UI prelude (#17848) 2025-02-13 19:48:45 +00:00
measurement.rs Use CosmicFontSystem in public bevy_text APIs and remove cosmic_text re-export (#16063) 2024-10-23 20:05:28 +00:00
picking_backend.rs Renamed EventWriter::send methods to write. (#17977) 2025-02-23 21:18:52 +00:00
stack.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
ui_material.rs bevy_ui: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17229) 2025-01-08 19:30:19 +00:00
ui_node.rs Store UI render target info locally per node (#17579) 2025-02-10 07:27:58 +00:00
update.rs UI clipping update function comments fix (#17785) 2025-02-10 22:35:12 +00:00