Function ecs_get_type

Synopsis

#include <include/flecs.h>

FLECS_API ecs_type_t ecs_get_type(const ecs_world_t *world, ecs_entity_t entity)

Description

Get the type of an entity.

Parameters

world - The world.

entity - The entity.

Returns
The type of the entity, NULL if the entity has no components.

Mentioned in

Source

Line 2123 in include/flecs.h.