Function ecs_new_from_path_w_sep


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


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.


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.

The entity.


Line 2738 in include/flecs.h.