Function ecs_set_alias

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_set_alias(ecs_world_t *world, ecs_entity_t entity, const char *alias)

Description

Set alias for entity. An entity can be looked up using its alias from the root scope without providing the fully qualified name if its parent. An entity can only have a single alias.

The symbol is stored in (EcsIdentifier, EcsAlias).

Parameters

world - The world.

entity - The entity.

alias - The alias.

Source

Line 2424 in include/flecs.h.