How will display values like table?

Hi All,

In my code i am storing values like an array.

    one.Add(StripeValue.ToString()+Pendulum2.Timeperiod.ToString()+Pendulum2.count.ToString());

Displaying is some what problem i am facing

can u please tell will how will i display row by row?

My code is like this:

foreach(string s in one) {
GUI.Label(new Rect(0,hieght,400,10), s ,fontstyle);

Every time i want to increase hieght element. can please give how will increment the hieght variable in the code of for each statement.

Please help me.

shankar

1 Answer

1

foreach(string s in one) {
GUI.Label(new Rect(0,hieght,400,10), s ,fontstyle);
hieght += 123; // or whatever value you need to offset each row.