-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
View all resources with World.resources() #1891
Comments
there is |
It's not really obvious what this .resources() method should actually return, as a resource can be any type. Clarification is needed on what the returned values of this function needs to be used for, and what data should be returned |
It might be worth having a set of debug specific APIs that return types that are easy to dump to stdout or logs. e.g, |
I don't think there is any actual regression. There never was a way to access a list of resources. As far as I can tell not even a Debug impl. All methods on the |
Closely related to #1130. |
There's some nice external-APIs only example code that does approximately this over on bevy-cheatbook/bevy-cheatbook#61 :) |
Duplicate of #3007, which has more progress. |
What problem does this solve or what need does it fill?
It would be useful to be able to see which Resources exist in the world, for debugging, discovery and editor purposes.
What solution would you like?
Expose a
.resources()
method onWorld
.What alternative(s) have you considered?
This may exist and I missed it. In that case, organization or documentation needs work instead.
Additional context
This appears to have been lost in #1525; this functionality exists in 0.4, but not in 0.5.Edit: I was mistaken about behavior in 0.4; this is new functionality.Resources are now a part of
World
, but it doesn't seem to be accessible from that.The text was updated successfully, but these errors were encountered: