Function ecs_is_valid

Synopsis

#include <include/flecs.h>

FLECS_API bool ecs_is_valid(const ecs_world_t *world, ecs_entity_t e)

Description

Test whether an entity is valid. An entity is valid if it is not 0 and if it is alive. If the provided id has a role or a pair, the contents of the role or the pair will be checked for validity.

Parameters

world - The world.

e - The entity.

Returns
True if the entity is valid, false if the entity is not valid.

Source

Line 1568 in include/flecs.h.