Function ecs_get_name

Synopsis

#include <include/flecs.h>

FLECS_API const char * ecs_get_name(const ecs_world_t *world, ecs_entity_t entity)

Description

Get the name of an entity. This will return the name as specified in the EcsName component.

Parameters

world - The world.

entity - The entity.

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

Mentioned in

Source

Line 1674 in include/flecs.h.