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:
trueto preserve the world transform.falseto preserve the relative transform. (Usetrueif the model should keep its effective location and size in the scene!)