Skip to content
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

Document CommandBuffer.remove() will not remove any if it does not match all components #355

Open
jestarray opened this issue Dec 6, 2023 · 0 comments

Comments

@jestarray
Copy link

https://docs.rs/hecs/latest/hecs/struct.CommandBuffer.html#method.remove

Remove components from entity if they exist

Mislead me into thinking "Oh, I can just specify a whole bunch of components and it will remove them if they don't exist"

When really it should be mentioned they must match all just like World.remove()
https://docs.rs/hecs/latest/hecs/struct.World.html#method.remove

If any component in T is not present in entity, no components are removed and an error is returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant