bevy/crates/bevy_ui/src
ickshonpe 26ea38e4a6
Remove the entity index from the UI phase's sort key (#18273)
# Objective

The sort key for the transparent UI phase is a (float32, u32) pair
consisting of the stack index and the render entity's index.
I guess the render entity index was intended to break ties but it's not
needed as the sort is stable. It also assumes the indices of the render
entities are generated sequentially, which isn't guaranteed.

Fixes the issues with the text wrap example seen in #18266

## Solution

Change the sort key to just use the stack index alone.
2025-03-12 17:11:02 +00:00
..
experimental Change ChildOf to Childof { parent: Entity} and support deriving Relationship and RelationshipTarget with named structs (#17905) 2025-02-27 19:22:17 +00:00
layout Transform Propagation Optimization: Static Subtree Marking (#18093) 2025-03-09 19:29:01 +00:00
render Remove the entity index from the UI phase's sort key (#18273) 2025-03-12 17:11:02 +00:00
widget Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
accessibility.rs Generic system config (#17962) 2025-03-12 00:12:30 +00:00
focus.rs Store UI render target info locally per node (#17579) 2025-02-10 07:27:58 +00:00
geometry.rs Val::resolve doc comment fix (#18143) 2025-03-03 19:49:52 +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 Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
stack.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
ui_material.rs Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
ui_node.rs UiTargetCamera doc comment correction (#18216) 2025-03-09 22:48:52 +00:00
update.rs Generic system config (#17962) 2025-03-12 00:12:30 +00:00