Contents

append(contentsOf:preservingWorldTransforms:)

Adds the specified list of entity as children to this entity.

Declaration

@MainActor @preconcurrency func append(contentsOf array: [Entity], preservingWorldTransforms: Bool = false)

Parameters

  • array:

    The child entities to add to the collection.

  • preservingWorldTransforms:

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