Function ecs_set_name_prefix

Synopsis

#include <include/flecs.h>

FLECS_API const char * ecs_set_name_prefix(ecs_world_t *world, const char *prefix)

Description

Set a name prefix for newly created entities. This is a utility that lets C modules use prefixed names for C types and C functions, while using names for the entity names that do not have the prefix. The name prefix is currently only used by ECS_COMPONENT.

Parameters

world - The world.

prefix - The name prefix to use.

Returns
The previous prefix.

Source

Line 2281 in include/flecs.h.