[][src]Trait specs_hierarchy::Parent

pub trait Parent {
    fn parent_entity(&self) -> Entity;
}

Bound for the parent component of your crate. Your Parent component usually just contains the Entity that's the parent you're linking to.

Note that the component should indicate that the Entity its added has a parent (the entity stored in your component).

Required methods

fn parent_entity(&self) -> Entity

Retrieves the parent Entity.

Loading content...

Implementors

Loading content...