2D Toolkit Forum
2D Toolkit => Support => Topic started 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.
-
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.