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 is stored in (EcsIdentifier, EcsSymbol).

Parameters

world - The world.

entity - The entity.

symbol - The symbol.

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

Source

Line 2407 in include/flecs.h.