sm.terrainTile.getAssetsForCell

Returns a table of all assets in a terrain cell.

Kind: Function

Environments: Terrain

Terrain

sm.terrainTile.getAssetsForCell( tileUid, cellOffsetX, cellOffsetY, sizeLevel )

Open the full Terrain reference

Parameters:

Name Type Description
tileUid Uuid The tile uuid.
cellOffsetX integer The cell X offset.
cellOffsetY integer The cell Y offset.
sizeLevel integer The size level of asset. [0-3]

Returns:

Type Description
table A table { { uuid = Uuid, pos = Vec3, rot = Quat, colors = { string = Color, ...}, tags = { string, ... } }, ... } of assets in the cell.