Phaser API Documentation

  Version: 
getTypeIncludingTile(obj)

Description:

Gets the Tiled type field value from the object or the gid behind it.

Parameters:

name type description
obj Phaser.Types.Tilemaps.TiledObject

The Tiled object to investigate.

Returns:
Description:

The type of the object, the tile behind the gid of the object, or undefined.

Type:
  • string
Since: 3.60.0