Function ecs_add_path_w_sep


#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)


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.


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.

The entity.


Line 2760 in include/flecs.h.