- Home /
Question by
Gymhgy456 · Oct 19, 2018 at 04:01 AM ·
c#tilemaptilescriptable object
Get the tilemap that the tile is sitting on - Scriptable Tiles (runtime and editor)
How do I get the tilemap that a scriptable tile is sitting on? I want to know this because I want to use Tilemap.HasTile and Tilemap.GetTile on neighboring tiles. Does ITilemap.GetComponent() work? (The ITilemap instance will be the instance from GetTileData)
Comment
Best Answer
Answer by ChuanXin · Oct 19, 2018 at 09:23 AM
You can use ITilemap.GetComponent() from the ITilemap instance in GetTileData.
Your answer
Follow this Question
Related Questions
Help with scriptable tiles PLEASE HELP URGENT!!! 1 Answer
Store data for tile based system 1 Answer
Finding the location of the tile in a tilemap nearest to the player 0 Answers
How to make different Rule Tiles interact with each other? 0 Answers
Efficient way of placing multi-tile sprites onto tilemap via script 0 Answers