Function ecs_is_component_enabled_w_id

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_is_component_enabled_w_id(const ecs_world_t *world, ecs_entity_t entity, ecs_id_t id)

Description

Test if component is enabled. Test whether a component is currently enabled or disabled. This operation will return true when the entity has the component and if it has not been disabled by ecs_enable_component.

Parameters

world - The world.

entity - The entity.

id - The component.

Returns
True if the component is enabled, otherwise false.

Source

Line 1498 in include/flecs.h.