Getting the position of the tile map in relation to the rest of the game objects

61 Views Asked by At

FYI On about in Unity in 2D

The tile map (which is under the grid) has a different position then other game object I create. No matter where I create the tile maps object, they have a position of (0,0,0). However I want to get the position of the tile map object in relation to the centre of the world. the following is screenshots of the objects:

The boxes on the top right is the rest of the objects and the centre of the world.

enter image description here

enter image description here

I've tried stuff I've found on the internet but really understood it and it hasn't worked so if you could explain your solutions too that would be a great help.

0

There are 0 best solutions below