append(contentsOf:preservingWorldTransforms:)
Adds the specified list of entity as children to this entity.
Declaration
@MainActor @preconcurrency func append<S>(contentsOf sequence: S, preservingWorldTransforms: Bool = false) where S : Sequence, S.Element : EntityParameters
- sequence:
The child entities to add to the collection.
- preservingWorldTransforms:
trueto preserve the world transform.falseto preserve the relative transform. (Usetrueif the entities should keep its effective location and size in the scene!)