Function ecs_enable

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_enable(ecs_world_t *world, ecs_entity_t entity, bool enabled)

Description

Enable or disable an entity. This operation enables or disables an entity by adding or removing the EcsDisabled tag. A disabled entity will not be matched with any systems, unless the system explicitly specifies the EcsDisabled tag.

Parameters

world - The world.

entity - The entity to enable or disable.

enabled - true to enable the entity, false to disable.

Mentioned in

Source

Line 1746 in include/flecs.h.