Problem With Screen Height and width in Unity3d v3.5.2

Hello All,

I am using Unity3d v3.5.2 and facing a problem while using Screen.Width and Screen.Height, Here the problem is When i launch the game in iPhone then it actually take screen.width as a screen.height and screen.height as a screen.width but when i switch from one scene to another and get back to the same scene then it gets norman (i.e: Screen width ac a screen.width and screen.height as a screen.height)

Please give your views on these and any suggestion on this is most welcome.

Thanks
Ashish

On mobile devices, the size of the screen is rectangular, so the width will always be greater than the height (if played sideways) or less than the height (if played normally), so if your game is played in only one orientation, you could do a check to see which value is greater and assign them to variables based on that.

Otherwise, I am not certain why you might have this issue.

Ok Thanks Eddy

but i know width will always be greater than the height but in this particular version of unity3d it creates some problem which i mention in my last post.