Hello Guest

Author Topic: tk2dCamera setup issues  (Read 4929 times)

mentalray

  • Newbie
  • *
  • Posts: 2
    • View Profile
tk2dCamera setup issues
« on: March 23, 2013, 07:35:01 pm »
Hi,

I'm having issues setting up a tk2dCamera in my scene.  The problem is that the camera only shows the top-right quarter of the scene, for reasons that elude me.

My camera is setup with a resolution of 640x960 with "force editor resolution" turned on.  My scene/camera configuration can be seen on the screenshot in attachment.

The "unity camera" preview shows the right thing, but not the "tk2dCamera preview".  When I hit play, only the top-right quarter can be seen.

This is very weird.  Any insight would be appreciated.

evs

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: tk2dCamera setup issues
« Reply #1 on: March 23, 2013, 08:45:49 pm »
Hello,

The origin of the tk2dCamera is 0,0 at the bottom left as opposed to the centre
of the screen of the normal one.

So an image placed at 0,0 will show as in the attached screenshot

When using the tk2dCamera I hide the ordinary camera by folding its settings
using the triangle in the inspector



cheers

evs

mentalray

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: tk2dCamera setup issues
« Reply #2 on: March 24, 2013, 04:58:47 pm »
Of course, it makes total sense.  Thank you!