Phaser API Documentation

  Version: 
setTileSize([tileWidth], [tileHeight])

Description:

Sets the tile width & height and updates the tile data (rows, columns, etc.).

Parameters:

name type arguments description
tileWidth number <optional>

The width of a tile in pixels.

tileHeight number <optional>

The height of a tile in pixels.

Returns:
Description:

This Tileset object.

Examples:
Since: 3.0.0
Source: src/tilemaps/Tileset.js (Line 296)