extractObjects
extractObjects(
map,objectLayerName?):Record<string,TileObject[]>
Defined in: tilemap/src/tiled/parseTiledMap.ts:208
Extract objects from Tiled object layers, grouped by class/type/name.
Parameters
Section titled “Parameters”Parsed TiledMapData.
objectLayerName?
Section titled “objectLayerName?”string
Optional: only extract from this layer.
Returns
Section titled “Returns”Record<string, TileObject[]>
Record mapping class/type/name to arrays of TileObject.