GUI window size vs. monitor sizes

Hi all,
Have some questions about GUIs and how they function. I’ve gone through most of the tuts and read a fair amount of the documentation (how much I understood is another question entirely). :?

Question:
GUI objects are setup with parameters that are fixed to the size of the game window correct? So if someone opens a game/presentation on a different size than the GUI was coded for, the gui objects are all in the wrong spot. Is there a workaround for this? I’m thinking something that positions objects based upon their position/size relative to the window? Does this make sense? If not, let me know and I can post a screen shot or two.
thanks,
daniel

Hi I think what you are looking for is this:

GUI.matrix = Matrix4x4.TRS (Vector3(0,0,0), Quaternion.identity, Vector3 (Screen.width / 1680.0, Screen.height / 1050.0, 1));

Insert your own default screen size in the width and height.
this line goes in the OnGUI function before the code for the GUI that you want to scale.

Cheers!

[/quote]

Awesome! Thanks so much. That’s exactly what I was looking for. much appreciated
daniel