Hello Guest

Author Topic: Moving objec with OnMouseDwon in tk2dCamera  (Read 3615 times)

naeem

  • Newbie
  • *
  • Posts: 1
    • View Profile
Moving objec with OnMouseDwon in tk2dCamera
« on: May 24, 2015, 07:46:05 am »
Hi.
I am working on a small android game.I was moving my object through Camera.main.screentowordpoint(input.mouseposition);.
After installing 2D toolkit and removing main camera and adding tk2dcamera I am not able to move these objects with mouse.Please tell how can i move these objects now?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Moving objec with OnMouseDwon in tk2dCamera
« Reply #1 on: May 24, 2015, 12:08:54 pm »
Camera.main finds the camera with the "Main Camera" tag. You'll probably find your tk2dCamera doesn't have that set, set it and it'll work.