Using Unity 4.3 in 2d mode I have a GameObject which is a sprite (in the SpriteRenderer I've setted the sprite), and I'm trying to position it in the top-left of the screen.
I would like to have this sprite to be positioned in the top left (for example) in every resolution (I have iOS as build target so in my case I'm talking about iPhone all resolutions, retina, non-retina, iPad etc).
What I'm missing is how exactly the coordinate system works, I'm used to work with pixels in a coordinate system where 0,0 start from bottom-left or top-left.
Here in Unity 4.3 seems like the 0,0 is in the center (this is not a big problem obviously) but what it makes me confused is that if I print the width of my object (which is 128px) I get an 1.06 as value, and also the screen is subdivided in "points" I suppose, so the left is -3 and the right is +3
so questions are: Why my sprite width is 1.06 ? How I'm supposed to position things perfectly within this system ?
Imagine I want to position a square of 128px*128px exactly at top left, how can I do it?
camera.transform
– Charleh