Deprecate and remove insert_or_spawn_batch #15704
Labels
A-ECS
Entities, components, systems, and events
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
M-Needs-Migration-Guide
A breaking change to Bevy's public API that needs to be noted in a migration guide
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Contentious
There are nontrivial implications that should be thought through
Just like in #15459 / #15652 for
get_or_spawn
,insert_or_spawn_batch
is an anti-pattern: it uses entity IDs in a non-opaque way, attempting to assign specific meaning to certain entities. With the retained rendering world in place, we should remove it to discourage this pattern and enforce the ECS invariants more strongly.#15702 should be merged first, to ensure that the migration path for the non-footgunny part of this API is smooth.
The text was updated successfully, but these errors were encountered: