-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add a method to get EntityCommands from EntityWorldMut #23512
Copy link
Copy link
Open
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed uponThis work is generally agreed upon
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed uponThis work is generally agreed upon
Type
Projects
Status
Needs SME Triage
What problem does this solve or what need does it fill?
Certain things, such as cloning components, are much easier to do with
EntityCommandsas opposed toEntityWorldMut. But currently switching between them is somewhat tedious.What solution would you like?
A
entity_commands(bikeshedding welcome) method onEntityWorldMut.What alternative(s) have you considered?
Keep it as is. It's not that much extra code, and the only places where users would encounter this frustration (that I can think of) would be with
EntityCommandand the upcomingTemplate.