Function removeEntityWithChildren

  • Remove all components of each entity in the tree made with Transform parenting

    Parameters

    • engine: Pick<IEngine, "defineComponentFromSchema" | "removeEntity" | "defineComponent" | "getEntitiesWith">

      the engine running the entities

    • entity: Entity

    Returns void