remove(_:preservingWorldTransform:)
Removes the specified child from this entity.
Declaration
@MainActor @preconcurrency func remove(_ child: Entity, preservingWorldTransform: Bool = false)Parameters
- child:
The child entity to remove from the collection.
- preservingWorldTransform:
trueto preserve the world transform.falseto preserve the relative transform. (Usetrueif the entities should keep its effective location and size in the scene!)