Question by
varikor · Apr 02, 2019 at 02:38 AM ·
tilemaptilegrid based gameget
How to check if a position has a type of tile
I am wondering how I receive the tile type of tile (like a Watertile, RoadTile, GrassTile, ect..) based on a Vector3 or Vector3Int. I think the way to do this is with Tilemap.GetTile but I cant figure out how to get it to work. An example would be greatly appreciated!
Comment
Answer by Ekaitzdev · Feb 15, 2020 at 03:20 PM
The easiest way is to make different tileset for each of them. If you need to make tiles with singular properties them I encorage you to use sprites instead.
Your answer
Follow this Question
Related Questions
Tile Tear in Unity 2 Answers
There is still lines betweeb my tiles even with pixelsnap. 1 Answer
Can I extract tile map data? 0 Answers
How can I Remove one tile from tilemap 1 Answer
Problem with 2D tiles from a tilemap appearing blurry in game 0 Answers