API Reference › Tiled › Tiled.read_tsx
method

Tiled.read_tsx

Tiled.read_tsx(path: string) -> value

Reads a standalone Tiled tileset file at path (TSX or TSJ) and returns a tileset Value object: name, tilewidth/tileheight, spacing, margin, columns, tilecount, the image and its size, and a tiles list of per-tile metadata (animation frames, collision shapes, properties). This is what a map's external {firstgid, source} tileset reference resolves to.

← All symbols