Missing a method to insert related entities at a specific index (insert_children
)
#17478
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
P-Regression
Functionality that used to work but no longer does. Add a test for this!
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Milestone
What problem does this solve or what need does it fill?
Before #17398 there was a pretty handy method for inserting a slice of children at a specific index: insert_children
Not sure if it was intentionally left out, or just lost in the process. It's pretty useful for UI sometimes when needing to insert one or more children in specific spots.
While migrating
bevy_editor_prototypes
I resorted to an extension for now:What solution would you like?
insert_related
method onEntityWorldMut
/EntityCommands
, inserting a&[Entity]
(or iterator?) at a specific index.insert_children
for convenience and less breakage when migratingWhat alternative(s) have you considered?
The text was updated successfully, but these errors were encountered: