Struct hecs_hierarchy::TreeBuilderAt
source ·
[−]pub struct TreeBuilderAt<'a, 'b, T> { /* fields omitted */ }
Expand description
A wrapper to help spawn children for a given entity more ergonomically
Created by TreeBuilder::spawn_tree
Implementations
Immutably borrows the wrapped &mut World
from the contained RefCell
.
Panics
Panics if the value is currently mutably borrowed.
Mutably borrows the wrapped &mut World
from the contained RefCell
.
Panics
Panics if the value is currently borrowed.
Spawns an entity, without actually attaching it to anything.
Spawns a child under the currenty entity, returning the Entity
. If the
Entity
isn’t required, you can use attach_new
instead, which supports
method chaining.
Spawns a new child entity under the current entity.