bevy/crates/bevy_hierarchy
ira c9ec5c771a Add set_parent and remove_parent to EntityCommands (#6189)
I found myself doing
```rust
let child = commands.spawn(..).id();
commands.entity(parent).add_child(child);
```
When that could just be
```rust
commands.spawn(..).set_parent(parent);
```

Adding `set_parent` was trivial as it's just an `AddChild` command. Most of the changes are for `remove_parent`.
Also updated some outdated docs.

Co-authored-by: devil-ira <justthecooldude@gmail.com>
2022-10-24 14:33:49 +00:00
..
src Add set_parent and remove_parent to EntityCommands (#6189) 2022-10-24 14:33:49 +00:00
Cargo.toml Add warning when a hierarchy component is missing (#5590) 2022-09-19 16:12:11 +00:00