Move tile with gameobject in TileMap
Hi everyone,
I already find out, how to use tilemap with gameobjects (I create new instance of Tile class, sets gameobject to my prefab and use settile method to push it into grid). But now I need to move that tile. Problem is, when I use GetTile to get my tile and apply SetTile to that tile I get actually creates new instance of object (apparently that is caused because of SetTile method). And also if I hardly changes position of object, tile system did not notice that change. So that change has to be done using tilesystem. But there is no method for moving tile. Or at least I didn't find it and doc is not helpful.
Of course I can GetTile - SetTile to new pos and old pos set to null, but that seems pretty ugly (i'm always creating new object and destroy old object).
Thanks for any advices
Answer by ravichandrakamminana123 · Mar 15, 2021 at 11:30 AM
was the problem resolved? I'm facing similar issue.