I have a game object absolute positioned on the top left of the screen for my mobile test game.
when I run on windows phone and android device it displays different positioning and I am afraid it could have even worst results in other different devices.
How do I position my game object referencing the screen margin (top, left, right, bottom )?
thanks
The top left has a screen co-ordinate of (0,1). You can use ScreenToWorldPoint to convert the upper left screen co-ordinate into world co-ordinate and position your gameobject at that location. You might have to shift the world position by the width and height of the gameobject before placing it else it might be clipped out of screen. Hope this helps.