Skip to content

API Interface TilemapLayerData

github-actions[bot] edited this page Nov 28, 2026 · 2 revisions

Interface: TilemapLayerData

Defined in: src/plugins/tilemaps/runtime/format.ts:37

One layer of a Tilemap as stored in scene files.

Properties

chunks

chunks: Record<string, string>;

Defined in: src/plugins/tilemaps/runtime/format.ts:54

"cx,cy" → run-length string of the chunk's 256 cell values.


collision

collision: boolean;

Defined in: src/plugins/tilemaps/runtime/format.ts:46

Whether this layer's tiles make colliders (with a ShapeCollider2D).


locked?

locked?: boolean;

Defined in: src/plugins/tilemaps/runtime/format.ts:60

ADR 0441: the editor's brushes skip it. Absent: false.


name

name: string;

Defined in: src/plugins/tilemaps/runtime/format.ts:40


offset?

offset?: [number, number];

Defined in: src/plugins/tilemaps/runtime/format.ts:56

ADR 0441: shifts the layer's drawing and collision, in local units. Absent: [0, 0].


opacity

opacity: number;

Defined in: src/plugins/tilemaps/runtime/format.ts:50

0..1, multiplied with the tiles' alpha.


orderInLayer

orderInLayer: number;

Defined in: src/plugins/tilemaps/runtime/format.ts:43


palette

palette: Record<string, string>;

Defined in: src/plugins/tilemaps/runtime/format.ts:52

The layer's tile numbers (the cell values' low bits, as strings) → the tileset tiles' uuids (ADR 0392).


parallax?

parallax?: [number, number];

Defined in: src/plugins/tilemaps/runtime/format.ts:58

ADR 0441: how much the layer moves with the view camera (Tiled's parallax factor), visual only. Absent: [1, 1].


sortingLayer

sortingLayer: string;

Defined in: src/plugins/tilemaps/runtime/format.ts:42

Sorting layer name from project settings (back to front).


tint

tint: string;

Defined in: src/plugins/tilemaps/runtime/format.ts:48

Tint as #rrggbb, multiplied with the tiles.


v?

v?: number;

Defined in: src/plugins/tilemaps/runtime/format.ts:39

Format version; absent means 1.


visible

visible: boolean;

Defined in: src/plugins/tilemaps/runtime/format.ts:44

Clone this wiki locally