- Home /
How will i get new line in window data?
Hi All,
In my project i want to display data like table. I am getting values. But in display thing i faced some problem.
for reference please see this link:
http://answers.unity3d.com/questions/427103/how-will-i-update-my-table-values-every-time.html
i wrote code like this:
   void DoMyWindow3(int windowID)
   {
     GUI.Label(new Rect(0,0,400,100), " Length Timeperiod Angle "          +StripeValue+""+Pendulum2.Timeperiod +""+Pendulum2.count ,fontstyle);
 
 }
 
By using this code every time i am getting the values but that are not displayed correctly. I want table, like before link.
Please give me a suggestion.
Thanks to all
Shankar
               Comment
              
 
               
              Answer by Loius · Apr 01, 2013 at 07:24 AM
Use GUILayout or math:
 for ( each row ) {
   GUILayout.BeginHorizontal();
   // or:
   top+= rowHeight;
   left= 0;
   for ( each column ) {
     GUILayout.Label(data[row,column]);
     // or:
     GUI.Label(Rect(left,top,w,h),data[row,column]));
     left+= columnWidth;  
   }
   GUILayout.EndHorizontal();
 }
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                