Function ecs_delete

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_delete(ecs_world_t *world, ecs_entity_t entity)

Description

Delete an entity. This operation will delete an entity and all of its components. The entity id will be recycled. Repeatedly calling ecs_delete without ecs_new, ecs_new_w_id or ecs_new_w_type will cause a memory leak as it will cause the list with ids that can be recycled to grow unbounded.

Parameters

world - The world.

entity - The entity.

Mentioned in

Source

Line 1263 in include/flecs.h.