Function ecs_set_name

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_set_name(ecs_world_t *world, ecs_entity_t entity, const char *name)

Description

Set the name of an entity. This will set or overwrite the name of an entity. If no entity is provided, a new entity will be created.

The name will be stored in the EcsName component.

Parameters

world - The world.

entity - The entity.

name - The entity's name.

Returns
The provided entity, or a new entity if 0 was provided.

Mentioned in

Source

Line 1908 in include/flecs.h.