Resolution differences between iphone and GUI Manager?

So I’m using GUI manager to handle all my GUI stuff. Works great so far, except…

When I run the game through the unity simulator, all my GUI elements look exactly the way I want them to.

but, for some reason, when I run the app remotely on the iPhone, all the graphics show up about half the size they were in the Unity editor.

anyone else having a problem like this?

the remote is a low quality much smaller compressed version of the editor render shown on the iphone.
it is not rendered by the iphone nor does it in any way reflect the iphone experience. its just a way to get iphone input in the editor for testing, thats all

hmm. Makes sense, I guess.

Seems that the issue is that running the game with an “iphone” sized window isn’t the actual iphone screen size. Is there a Unity setting I’m missing somewhere? or am I going to have to line up all my UI graphics the slow and painful way?

when you take the dropdown above the game window and choose one of the iphone sizes, it is actually the iphone screen size.
You just have to choose the right one for the screen orientation you use.

I have “iPhone wide” selected, but when I run it remotely, the placement of my UI elements are in different places (closer to the middle) than what they show up in the editor.

did you resize the game window after choosing iphone wide?
is your iphone set to run in wide mode?

are your UI elements positioned accordingly for the 480x320 screen?

All yes.

In fact, I have a GUI element that is set to 460 width and 300 height that appears perfectly on both screens, but for some reason, the UI elements (using GUIManager) are aligned in the unity editor, but aren’t aligned on the iphone.

that might just be a GUIManager bug.
remember, gui manager is a user written thing and potentially has assumptions on the stuff.

also check if it has a mode dropdown where you have to set your screen mode additionally.

Check that the orientation is set correctly in GUICameras.cs - there’s an attribute or a variable or somesuch for that… It’s a long time since I poked around in that part of my GUI code - but that may be part of the issue…

Looks like that did the trick! I had to turn off the checkbox that said “MVertical Orientation” in the GUICameras object.

on a related topic,…should I be setting the resolution of the .png file to 163 pixels per inch to match the iPhone pixel resolution?

Hi. I’ve always just used 72dpi with my pngs. The dot pitch does not affect the way images are handled in the GUIManager. Only the actual pixel size is used.