-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get ResMut
of a resource from World
#11765
Comments
What's the reason for needing both |
|
The issue proposed two alternatives, the former being adding a new method, which I was curious about. I agree with the second one of changing the existing functions :) |
We've always treated |
Thank you for the issue, but I'm going to close this since we're likely going to move in the direction described in #11825 |
Originally posted by @alice-i-cecile in #11561 (comment)
What problem does this solve or what need does it fill?
There should be a way to get change-detection-enabled, mutable access to a resource from the
World
. The type that's conventionally used for that isResMut
What solution would you like?
Add a method to
World
that supports that / change the current implementation ofresource_mut
(and the like) to getResMut
instead ofMut
and/or&mut T
What alternative(s) have you considered?
Keep as is
The text was updated successfully, but these errors were encountered: