How To Get Tile Cell Position
I have created a Tilemap which is a child of a grid. Is there any way to get a particular grid cell in script? I ask because you can use Map.SetTile(new Vector3Int(1, 1, 0), null); in order to remove a tile at a certain cell position. I have an object that collides with tiles and I want to be able to get the cell position that was collided with so that I can remove that tile. Any help would be appreciated.
Your answer
Follow this Question
Related Questions
Make a 2D tile take up more than 1 grid cell 0 Answers
Does the gameobject brush create tiles when painting on a 2d Tilemap? 1 Answer
Obtain Sprite Data from Tile in a Grid Using Tile Coordinates 1 Answer
I can't see tiles after Instantiate() a tilemap 1 Answer
Solution for a Tiles Instantiated Object not appearing on Tile Palette? 0 Answers