Skip to content

getPropertyArray

getPropertyArray<T>(obj, name): T[]

Defined in: tilemap/src/properties.ts:22

Get a pseudo-array of property values.

Tiled doesn’t support array properties natively, so a common convention is to use indexed names like spawns[0], spawns[1], etc. This function collects them into a proper array, preserving index order.

T = unknown

HasProperties

string

T[]