tilemap_get_used_cells
List used cells from a TileMapLayer or legacy TileMap, returning grid coordinates and source IDs, capped at a specified maximum count to keep results manageable.
Instructions
List the used cells of a TileMapLayer or legacy TileMap layer as grid x,y with source_id, capped at max_count
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | ||
| max_count | No | ||
| node_path | Yes |