Flecs Run Named Query
flecs_run_named_queryRun an existing named query, system, or observer to return the entities it matches now, helping verify what a system processes.
Instructions
[READ] Return what an existing named query, system or observer matches now.
Useful to check which entities a system processes. Same result format as flecs_query: {page, results, type_info?}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Include flecs.doc information (doc names, descriptions). | |
| name | Yes | Dotted path of an existing named query, system or observer, as listed by flecs_list_queries (e.g. 'game.systems.Move'). | |
| limit | No | Maximum number of items to return. | |
| table | No | Return every tag, pair and component of each matched entity (same format as flecs_get_entity) instead of only the query fields. | |
| fields | No | Include per-term field data ('fields') for each result. | |
| offset | No | Number of items to skip (for paging). | |
| values | No | Include component values. | |
| inherited | No | With table=true: include components inherited from prefabs. | |
| type_info | No | Include the reflection schema of the returned components. | |
| variables | No | Optional values for query variables as 'var:entity' pairs, e.g. 'parent:Sun' or 'x:e1,y:e2'. | |
| entity_ids | No | Include numeric entity ids ('id'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| results | Yes | ||
| type_info | No |