Hi,
I’m wondering how I can auto-manage resolutions for iPhone 3G, Retina Display iPad GUITextures using iPad GUITexture size (in other words, reduce scale for iPhone 3G and a little for Retina Display).
I’ve tried with localScale but when do something like guitextureobject.transform.localScale = Vector3(scaleFactor, scaleFactor, 0) the image is deformed (it doesn’t keep the aspect ratio).
Any ideas?
Thanks!
if it deforms it behaves right, cause the iphones have a 3:2 aspect ratio while ipad has 4:3
We developed a nice solution for making Unity games resolution- and orientation-independent: OrientationControl (it’s based on similar code to what the StandardGUI in GUIKit001 runs on.)
Both are using UnityGUI since you can’t rotate GUITextures, but the part that’s responsible for dealing with normal displays getting 100% resolution images and retina-displays getting 200% should be applicable to GUITextures as well…