Function lookup

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

flecs::entity lookup(const char *name) const

Description

Lookup entity by name.

Parameters

name - Entity name.

Mentioned in

Source

Lines 79-82 in include/flecs/addons/cpp/impl/world.hpp. Line 510 in include/flecs/addons/cpp/world.hpp.

inline entity world::lookup(const char *name) const {
    auto e = ecs_lookup_path_w_sep(m_world, 0, name, "::", "::", true);
    return flecs::entity(*this, e);
}