Hello Guest

Author Topic: Can't left click to select objects behind the TileMap  (Read 3084 times)

arvz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 21
    • View Profile
Can't left click to select objects behind the TileMap
« 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?
« Last Edit: February 05, 2014, 11:57:13 am by arvz »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Can't left click to select objects behind the TileMap
« Reply #1 on: February 05, 2014, 12:07:49 pm »
You can turn off the gizmo that selects the tile map. Comment out / delete tk2dTileMap.OnDrawGizmos