Add EntityWorldMut::commands
method
#14278
Labels
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
What problem does this solve or what need does it fill?
I'm implementing UI widgets as
EntityCommand
s to get an API like this:I want my parent widget to create child widgets with
entity.add(my_child_widget)
, butentity
is anEntityWorldMut
, not anEntityCommands
, so it has no.add
method.What solution would you like?
This is a natural solution, because
EntityWorldMut::commands -> EntityCommands
would parallelWorld::commands -> Commands
.What alternative(s) have you considered?
EntityWorldMut::add
:The text was updated successfully, but these errors were encountered: