Version: 2017.3

Tilemap.ContainsTile

Switch to Manual
public bool ContainsTile (Tilemaps.TileBase tileAsset);

Parameters

tileAsset Tile to check.

Returns

bool Whether the Tilemap contains the tile.

Description

Returns true if the Tilemap contains the given tile. Returns false if not.