Grid GUI element...

Hello. Is there any way to have a grid GUI element that has a different number of rows and columns? Thanks

By grid you mean buttons that you could press and divided into columns and rows?

Not sure is it this you wanted but here is selection grid

Yeah, thats what I meant (I just didn’t know the exact name). But doesn’t the selection grid need to be square, or can I haves a selecion grid that is 3 columns and 4 rows?

Just specify the amount of elements you want. According to the scripting reference, the xCount is the amount of elements in each row and then it will divide nicely for you. So for your case, 3 c x 4 row = 12 in total

var elements : String[] = new String[12]; // 12 is the total elements
var elementsInEachRow : int = 3; // elements per row
private var selGridInt : int;

function OnGUI () 
{
    selGridInt = GUI.SelectionGrid (Rect (25, 25, 500, 500), selGridInt, elements, elementsInEachRow);
}