Function ecs_set_symbol

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_set_symbol(ecs_world_t *world, ecs_entity_t entity, const char *symbol)

Description

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

The symbol will be stored in the EcsName component.

Parameters

world - The world.

entity - The entity.

symbol - The entity's symbol.

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

Source

Line 1925 in include/flecs.h.