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_insertcomponent 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
RelatedSpawnerused to spawn child entities containing aChildOfrelationship. - Child
Spawner Commands - A type alias over
RelatedSpawnerCommandsused to spawn child entities containing aChildOfrelationship.