bevy/crates/bevy_hierarchy/src
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
..
components Make Children constructor pub(crate). (#5532) 2022-08-05 03:49:12 +00:00
child_builder.rs Add set_parent and remove_parent to EntityCommands (#6189) 2022-10-24 14:33:49 +00:00
events.rs Fix some grammatical errors in the docs (#6109) 2022-09-26 21:47:31 +00:00
hierarchy.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
lib.rs Add warning when a hierarchy component is missing (#5590) 2022-09-19 16:12:11 +00:00
valid_parent_check_plugin.rs Add warning when a hierarchy component is missing (#5590) 2022-09-19 16:12:11 +00:00