shipyard 0.6.2

Entity Component System
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Remove Components


Removing a component will take it out of the storage and return it.

## World


```rust, noplaypen
{{#include ../../../../tests/book/remove_components.rs:world}}
```

## View


We have to import the [`Remove`](https://docs.rs/shipyard/latest/shipyard/trait.Remove.html) trait for multiple components.

```rust, noplaypen
{{#include ../../../../tests/book/remove_components.rs:view}}
```