Instance Property


The child entities that the entity manages.


var children: Entity.ChildCollection { get set }


An entity can have any number of child entities.

Use the addChild(_:preservingWorldTransform:) method to add a child to an entity. Use the removeChild(_:preservingWorldTransform:) method to remove one from an entity. These methods automatically update the parent properties of the child entities.

See Also

Managing Children

func addChild(Entity, preservingWorldTransform: Bool)

Adds the given entity to the collection of child entities.

func removeChild(Entity, preservingWorldTransform: Bool)

Removes the given child from the entity.

struct Entity.ChildCollection

A collection of child entities.