Phaser API Documentation

  Version: 
getTileData()

Description:

The tile data for this Tile, defined within the Tileset. This typically contains Tiled collision data, tile animations and terrain information. This returns a reference to the tile data stored within the Tileset, so any modification of the returned object will impact all tiles that have the same index as this tile.

Returns:
Description:

The tile data for this Tile, as defined in the Tileset, or null if no data was defined.

Type:
  • object
Since: 3.0.0
Source: src/tilemaps/Tile.js (Line 376)