2D Toolkit Forum

2D Toolkit => Support => Topic started by: arvz on February 05, 2014, 11:54:41 am

Title: Can't left click to select objects behind the TileMap
Post by: arvz on February 05, 2014, 11:54:41 am
Hi guys,

I've got a 2D scene with a tilemap and a tk2d sprite object inside the borders of the tilemap. Everytime I left click on the tk2d sprite, it always selects the Tilemap object instead of the tk2d sprite. I then added a cube (standard Unity cube). I can select these cubes with left mouse click without any problems.

What can I do to fix this? It's actually driving me insane

Edit: It seems if I position the sprite's Z axis position in front of the tilemap it seems to work. Is there any other way?
Title: Re: Can't left click to select objects behind the TileMap
Post by: unikronsoftware on February 05, 2014, 12:07:49 pm
You can turn off the gizmo that selects the tile map. Comment out / delete tk2dTileMap.OnDrawGizmos