Expand description
The canonical “parent-child” Relationship
for entities, driven by
the ChildOf
Relationship
and the Children
RelationshipTarget
.
See ChildOf
for a full description of the relationship and how to use it.
Structs§
- ChildOf
- Stores the parent entity of this child entity with this component.
- Children
- Tracks which entities are children of this parent entity.
Functions§
- validate_
parent_ has_ component - An
on_insert
component hook that when run, will validate that the parent of a given entity contains componentC
. This will print a warning if the parent does not containC
.
Type Aliases§
- Child
Spawner - A type alias over
RelatedSpawner
used to spawn child entities containing aChildOf
relationship. - Child
Spawner Commands - A type alias over
RelatedSpawnerCommands
used to spawn child entities containing aChildOf
relationship.