2D Toolkit Forum

2D Toolkit => Support => Topic started by: mentalray on March 23, 2013, 07:35:01 pm

Title: tk2dCamera setup issues
Post by: mentalray 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.
Title: Re: tk2dCamera setup issues
Post by: evs 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
Title: Re: tk2dCamera setup issues
Post by: mentalray on March 24, 2013, 04:58:47 pm
Of course, it makes total sense.  Thank you!