remove(at:preservingWorldTransform:)
Removes the specified child from this entity.
Declaration
@MainActor @preconcurrency func remove(at index: Int, preservingWorldTransform: Bool = false)Parameters
- index:
The index of 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!)