- Home /
Get Tile object from Tilemap instead of TileBase
What I'm trying to do is access the gameObject attached to the Tile object. But tilemap.GetTile() Returns a TileBase instead of a Tile. Is there any way to retrieve a Tile object based on position in the tilemap?
Comment
Answer by psychosticks · Mar 20, 2021 at 05:31 PM
You can write tilemap.GetTile<Tile>()
to retrieve a Tile instead of a Tilebase