Function ecs_children

Synopsis

#include <include/flecs.h>

FLECS_API ecs_iter_t ecs_children(const ecs_world_t *world, ecs_entity_t parent)

Description

Iterator for a parent's children. This operation is equivalent to a term iterator for (ChildOf, parent). Iterate the result with ecs_children_next.

Parameters

world - The world.

parent - The parent for which to iterate the children.

Returns
The iterator.

Mentioned in

Source

Line 3038 in include/flecs.h.