Phaser API Documentation

  Version: 
getTileCollisionGroup(tileIndex)

Description:

Get a tile's collision group that is stored in the Tileset. Returns null if tile index is not contained in this Tileset. This is typically defined within Tiled's tileset collision editor.

Parameters:

name type description
tileIndex number

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

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