GUI Basics

What are the bottom two controls saying in the following script? Or more specifically… I dont understand where the (Left and Top) are being placed. If the first GUI.Box starts the Rect at zero, then takes the screen.height and goes up 50 as indicated by the - 50 shouldn’t this be on the far left of the screen?

And wouldn’t the other be placed on the bottom right?

Screen.width - 100, Screen.height -50, 100,50), “Bottom-left”); Isn’t this saying begin the the left side of the Rect 100 in from the right and 50 up from the bottom of the screen then draw the Rect at a dimension of 100 over from the left of the Rect and 50 down from the top? If so wouldn’t that make this the Bottom-right instead of Bottom-left?

and shouldn’t GUI.Box (Rect(0,Screen.height - 50,100,50),“Bottom-right”);

make a rect on the Bottom-left?

/* Screen.width Screen.height example */

function OnGUI () {

GUI.Box (Rect (0,Screen.height - 50,100,50), “Bottom-right”);
** GUI.Box (Rect (Screen.width - 100,Screen.height - 50,100,50), “Bottom-left”);**
}

This was in the GUI Basics:

Thanks

Looks like a documentation bug…swap the text “Bottom right” and “Bottom Left”.

–Eric

+1

I logged a bug about it too.

I thought I was going crazy…