Parent

Parent

  1. bevy_ecs::entity::Entity

Description

Holds a reference to the parent entity of this entity. This component should only be present on entities that actually have a parent entity.

Parent entity must have this entity stored in its Children component. It is hard to set up parent/child relationships manually, consider using higher level utilities like BuildChildren::with_children.

See HierarchyQueryExt for hierarchy related methods on Query.

Functions

FunctionSummary
assert_receiver_is_total_eq(_self)No Documentation 🚧
eq(_self, other)No Documentation 🚧
get(_self) Gets the [`Entity`] ID of the parent.