Customized labels and window layout

Hi Guys,

I am relatively new to unity3d but not new to coding. I am currently using C# and am having some trouble with unity.
I dont need codes but rather, a direction that i should be looking to so if you have a minute, please do help me out (:

I need to create a window that lists lets say, items. Items descriptions etc will come from a database. The problem is this:

  1. I am using GUILayout.Window to create a new window upon a click of a button → Got this working. Now i am lost and need some direction in creating a layout using that window

End Product should be something like this

Can anyone point me in the correct direction? There are x number of items so i need to make it dynamically. I cant use an image because i need to update things on the fly. Are there any alternatives to creating that than GUILayout.Window?

Please advise.

You could use regular GUI instead of layout. Simply make variables to keep track of where to place items and increment them.

int x = 20; //Starting at 20 over.
int y = 20; //Starting at 20 down.
int sizeX = 100;
int sizeY = 50;

for(int i = 0; i < myList.Count; i++)
{
    GUI.Label(new Rect(x, y, sizeY, sizeY), "My content: " + myList[i]);
    x+=sizeX+10; // Move our rect over by the size of the last content + 10pixels
    //If you want something on a new row increment y..
}