Contents

append(_:preservingWorldTransform:)

Adds the specified entity as a child to this entity.

Declaration

@MainActor @preconcurrency func append(_ child: Entity, preservingWorldTransform: Bool = false)

Parameters

  • child:

    The child entity to add to the collection.

  • preservingWorldTransform:

    true to preserve the world transform. false to preserve the relative transform. (Use true if the model should keep its effective location and size in the scene!)

See Also

Adding entities