2D Toolkit Forum

2D Toolkit => Support => Topic started by: k3ch0ng on December 19, 2012, 01:26:08 pm

Title: tk2dcamera anchor
Post by: k3ch0ng on December 19, 2012, 01:26:08 pm
Is it possible to use tk2dcamera anchor without tk2dcamera ?

I need my buttons to be anchored but also scaled proportionaly to device resolutions.
Title: Re: tk2dcamera anchor
Post by: unikronsoftware on December 20, 2012, 02:51:35 am
No, the tk2dCameraAnchor only works with the tk2dCamera.

If you want to anchor something to the sides of an ortho camera, it is fairly straightforward. top/bottom, y = orthoSize, -orthoSize. left/right, x = -aspect * orthoSize, aspect * orthoSize.