Function ecs_lookup_child

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_lookup_child(const ecs_world_t *world, ecs_entity_t parent, const char *name)

Description

Lookup a child entity by name. Returns an entity that matches the specified name. Only looks for entities in the provided parent. If no parent is provided, look in the current scope ( root if no scope is provided).

Parameters

world - The world.

name - The entity name.

Returns
The entity with the specified name, or 0 if no entity was found.

Mentioned in

Source

Line 1816 in include/flecs.h.