Flecs Get Entity
flecs_get_entityRetrieve a FLECS entity's tags, relationship pairs, and component values as JSON. Use it to inspect entity details after finding entities with flecs_query.
Instructions
[READ] Get one entity with its tags, relationship pairs and component values.
Returns the FLECS entity JSON: 'parent', 'name', 'tags' (list), 'pairs' (relationship -> target), 'components' (component -> value; null when the component has no reflection data) and, when requested, 'id', 'type_info', 'inherited', 'matches' and doc info. Names use full paths.
Errors when the entity does not exist. Use flecs_query to find entities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Include flecs.doc information (doc names, descriptions). | |
| entity | Yes | Entity path in FLECS dotted notation, e.g. 'Sun.Earth' or 'flecs.core.World' (the 'parent' and 'name' fields of a query result joined with '.'), or a numeric entity id such as '#523'. Escape a literal '.' inside a name as '\.'. | |
| values | No | Include component values. | |
| matches | No | Include the queries, systems and observers that match this entity ('matches'). Useful to find out why a system does or does not process an entity. | |
| entity_id | No | Include the numeric entity id ('id'). | |
| inherited | No | Include tags/components inherited from prefabs (IsA). | |
| type_info | No | Include the reflection schema of the returned components. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||