Not sure what you're coding in but here's a basic box that I use:
// Draws a box of the size of the screen.
function OnGUI() {
GUI.Box(Rect(0,0,Screen.width,Screen.height),"This is a title");
}
Yeah I took that straight from the Scripting API. Tbh I prefer looking there first before asking, usually they say it better :) Play around with the numbers and it'll get bigger.
↧