shipyard 0.6.2

Entity Component System
Documentation
1
2
3
4
5
6
7
8
9
# Get and Modify Components


To access or update components you can use [`Get::get`](https://docs.rs/shipyard/latest/shipyard/trait.Get.html#tymethod.get). It'll work with both shared and exclusive views.

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

When using a single view, if you are certain an entity has the desired component, you can access it via index.