# Objective The code to create `ReflectComponent` and `ReflectResource` instances manually constructs a `Mut<dyn Reflect>` by copying everything but `value`. That can be done more concisely and better respecting encapsulation by calling the `map_unchanged()` method. ## Solution Use `map_unchanged` instead of creating a `Mut` manually. --------- Co-authored-by: radiish <cb.setho@gmail.com> |
||
|---|---|---|
| .. | ||
| bundle.rs | ||
| component.rs | ||
| entity_commands.rs | ||
| from_world.rs | ||
| map_entities.rs | ||
| mod.rs | ||
| resource.rs | ||