Skip to content

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

Description

@jestarray

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions