-
-
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
Make it possible to remove a resource from the ECS and get full ownership of it #359
Comments
Just out of interest, what would that be useful for? |
I first wanted it so that I could remove a resource a plugin added so that I could add it to my own (related) resource, but figured out I didn't really need to do that. I can't think of any use-case that isn't already solved by other solutions, to be honest. |
Even though there may not be use cases for this now, I think this must be supported by the API. Currently resources are insert only with no way to remove them. One such use case would be a custom rendering system that is inserted into resource and later you would like to move it somewhere else without destroying window. |
Would loading different maps with different game modes be another example? |
#1478 creates an API for this, but doesn't allow you to hand it off. I think that's worth implementing still. |
Close by #1525, via |
It should be possible to remove a resource from the ECS and get full ownership of it.
The text was updated successfully, but these errors were encountered: