There is no such thing as Tile object. Tilesets are the resources that have tiles in them, but Tiles aren’t objects by themselves. You can use Tileset methods to modify tiles, but since they’re not actually objects you can’t get them.
So, how to detect is it water tile, or grass tile, or lava tile?
Robotex | 2021-02-26 12:01
You will need to use the tile’s index. If you’re in the tileset editor you can hold alt to view the index of the tile.
get-used-cells-by-id(index) returns array with all cells of that index
Is there can be many cells on the same index?
Robotex | 2021-02-25 08:03
Yes, tile index is a number for type of tile you created in editor, for example you made grass tile, floor tile and obstacle tile, and their indexes are 0,1 and 2.
If you are looking for unique variable determining unique tile, than it is get cell and get cellv