Function ecs_clear

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_clear(ecs_world_t *world, ecs_entity_t entity)

Description

Clear all components. This operation will clear all components from an entity but will not delete the entity itself. This effectively prevents the entity id from being recycled.

Parameters

world - The world.

entity - The entity.

Source

Line 1540 in include/flecs.h.