Function ecs_new_from_path_w_sep

Synopsis

#include <include/flecs.h>

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

Description

Find or create entity from path. This operation will find or create an entity from a path, and will create any intermediate entities if required. If the entity already exists, no entities will be created.

If the path starts with the prefix, then the entity will be created from the root scope.

Parameters

world - The world.

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 1966 in include/flecs.h.