Phaser API Documentation

  Version: 
getCollisionGroup()

Description:

The collision group for this Tile, defined within the Tileset. This returns a reference to the collision group 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 collision group for this Tile, as defined in the Tileset, or null if no group was defined.

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