Function ecs_lookup

Synopsis

#include <include/flecs.h>

FLECS_API ecs_entity_t ecs_lookup(const ecs_world_t *world, const char *name)

Description

Lookup an entity by name. Returns an entity that matches the specified name. Only looks for entities 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 2067 in include/flecs.h.