How to find the GameObject attached to a Tile?
Hello
I am currently trying to figure out how to find the GameObject that is attacjed to a tile on a tilemap. The GetTile method returns a TileBase object, and it does not have a gameObject attached to it(unlike the Tile object). However, i can not simply convert the TileBase to a Tile, as i am using tile's from the 2d extensions package, specifically RuleTile. I have an idea of maybe getting the tile's world position and finding a GameObject at that position, however will be very inefficient and will potentially lead to bugs.
Is there any way to find a GameObject that is attached to the tile?
Your answer
Follow this Question
Related Questions
Does the gameobject brush create tiles when painting on a 2d Tilemap? 1 Answer
Tile pallet doesn't exist in Unity 2019.2.12f1 personal! How to re-enable it? 1 Answer
Problem with 2D tiles from a tilemap appearing blurry in game 0 Answers
How to check if a position has a type of tile 1 Answer
Can't Destroy Transform Component Error after exiting Play mode 2 Answers