Hello Guest

Author Topic: tk2dUIItem with tk2dCamera  (Read 3510 times)

Modernllama

  • Newbie
  • *
  • Posts: 3
    • View Profile
tk2dUIItem with tk2dCamera
« on: July 22, 2013, 10:09:10 am »
Hi,

Something I'm getting confused about regarding tk2duiitems. I managed to get your ui demo working with a tk2d camera with the same orthographic size set for the camera and for the sprite collection (1). I could then hit the button easily.

Now I notice that if I want to do it by pixel per meters, the only way to find the correct dimensions for the collider is to create a box collider for the sprite and then copy it to the gameobject in the above hierarchy i.e. create a collider for the button graphic and then copy it to the parent object above. I was wondering if I missed something that can do that for me?

Thanks

Modernllama

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: tk2dUIItem with tk2dCamera
« Reply #1 on: July 22, 2013, 10:32:47 am »
Never mind solved it! :)

Rukasu

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: tk2dUIItem with tk2dCamera
« Reply #2 on: July 22, 2013, 10:50:56 pm »
How did you solved?