Add World::resource_scope_by_id
#13466
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
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
X-Uncontroversial
This work is generally agreed upon
What problem does this solve or what need does it fill?
I working on https://github.com/projectharmonia/bevy_replicon and we do a lot of type erasure internally for perfomance and a nice API.
Sometimes I need to access a resource mutably by ID and other resources just as reference. Since we don't have something like
World::resource_scope_by_id
, I do the inverse:What solution would you like?
But it would be nicer to do it like this:
The text was updated successfully, but these errors were encountered: