Function ecs_add_path_w_sep

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_add_path_w_sep(ecs_world_t *world, ecs_entity_t entity, ecs_entity_t parent, const char *path, const char *sep, const char *prefix)

Description

Add specified path to entity. This operation is similar to ecs_new_from_path, but will instead add the path to an existing entity.

If an entity already exists for the path, it will be returned instead.

Parameters

world - The world.

entity - The entity to which to add the path.

parent - The entity relative to which the entity should be created.

path - The path to create the entity for.

sep - The separator used in the path.

prefix - The prefix used in the path.

Returns
The entity.

Source

Line 2205 in include/flecs.h.