bevy/crates/bevy_ui/src
JaySpruce d6db78b5dd
Replace internal uses of insert_or_spawn_batch (#18035)
## Objective
`insert_or_spawn_batch` is due to be deprecated eventually (#15704), and
removing uses internally will make that easier.

## Solution

Replaced internal uses of `insert_or_spawn_batch` with
`try_insert_batch` (non-panicking variant because
`insert_or_spawn_batch` didn't panic).

All of the internal uses are in rendering code. Since retained rendering
was meant to get rid non-opaque entity IDs, I assume the code was just
using `insert_or_spawn_batch` because `insert_batch` didn't exist and
not because it actually wanted to spawn something. However, I am *not*
confident in my ability to judge rendering code.
2025-03-06 16:16:36 +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 Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +00:00
render Replace internal uses of insert_or_spawn_batch (#18035) 2025-03-06 16:16:36 +00:00
widget Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
accessibility.rs Make Query::single (and friends) return a Result (#18082) 2025-03-02 19:51:56 +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 BorderRadius comment fix (#18141) 2025-03-04 08:06:34 +00:00
update.rs Change ChildOf to Childof { parent: Entity} and support deriving Relationship and RelationshipTarget with named structs (#17905) 2025-02-27 19:22:17 +00:00