Contents

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:

    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!)

Discussion

See Also

Removing entities