Closed
Description
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.
Metadata
Metadata
Assignees
Labels
Entities, components, systems, and eventsA targeted quality-of-life change that makes Bevy easier to useSimple bug fixes and API improvements, docs, test and examplesA breaking change to Bevy's public API that needs to be noted in a migration guideThis issue is ready for an implementation PR. Go for it!There is active debate or serious implications around merging this PR