Function children

Synopsis

#include <include/flecs/cpp/entity.hpp>

child_iterator children() const

Description

Return iterator to entity children. Enables depth-first iteration over entity children.

Returns
Iterator to child entities.

Mentioned in

Source

Lines 166-168 in include/flecs/cpp/impl/entity.hpp. Line 577 in include/flecs/cpp/entity.hpp.

inline child_iterator entity_view::children() const {
    return flecs::child_iterator(*this);
}