Phaser API Documentation

  Version: 
getTileData(tileIndex)

Description:

Get a tile's data that is stored in the Tileset. Returns null if tile index is not contained in this Tileset. This is typically defined in Tiled and will contain both Tileset collision info and terrain mapping.

Parameters:

name type description
tileIndex number

The unique id of the tile across all tilesets in the map.

Type:
  • object
  • undefined
Examples:
Since: 3.0.0
Source: src/tilemaps/Tileset.js (Line 201)