bevy_ecs

Module hierarchy

Source
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§

  • Stores the parent entity of this child entity with this component.
  • Tracks which entities are children of this parent entity.

Functions§

  • An on_insert component hook that when run, will validate that the parent of a given entity contains component C. This will print a warning if the parent does not contain C.

Type Aliases§