Using Percentage to Move Object

Ok, when I create my button “Single Player” I can position it. That’s all fine and dandy, but, is there a way t hat I can use %'s? So that it doesn’t matter if the screen is resized, for instance:

if (GUI.Button(Rect(50,50,200,50),“Single Player”))

I would rather it was in percentage. Or, is there another way to combat positioning?

Well you can adjust the GUI.matrix to scale for different screen resolutions see this thread for more details.

You can just position things using things like

if(GUI.Button(Rect(0.1 * Screen.width, 0.1 * Screen.height, 0.4 * Screen.width, 0.1 * Screen.height)))