Im currently working on my first Unity project. I have been creating all of the GUI elements using OnGui(). I have however been creating all of these elements based on the iPhone 4 retina screen. When I build the project for the iPhone 3g the GUI elements appear to be way way too big.
I have been setting them with pixel values rather than based on screensize. Ill implement that which should solve the positioning of the elements, but the size of the elements will still be effected by the lower resolution of the iphone 3g screen.
I also have a couple of GUI Textures which are used as joysticks and are dependent on the settings of the GUI Texture component. These also resize to incorrect proportions when built on a lower resolution device
Can you not set the GUITexture Pixel Inset according to your screen width and height?
“To use it effectively, you need to set the scale of the GUI Texture’s Transform to (0, 0, 0). Now, the Pixel Inset is in full control of the texture’s size and you can set the Pixel Inset values to be the exact pixel size of your Texture.”
}*
I still have the issue with the sizing of the onGui() elements. I guess i could do a similar thing, check the phone version then halve the element sizes accordingly. But then the fonts wont be the correct sizes… I wish there was a simpler way