- Home /
How to make a GUI Tabel.
Hello. I want to build a GUI Tabel and use a data base to auto complete itself. I got a problem,when i use my script
using UnityEngine; using System.Collections;
public class GUITest : MonoBehaviour { int i; int x=30; int y=0;
void OnGUI ()
{
for(i=0;i<118;i++)
{
GUI.Box(new Rect(x,y,30,30),"");
x=x+40;
if(x>=400)
{
x=0;
y=y+40;
}
}
}
The GUI tabel appear only for the duration of "for" like 0.3 seconds.I want to put it on a vector variabel or something like that so i can say v[i] do that v[x] do that and etc.
}
Not a way to get help by insulting Unity employees. I will re-iterate my previous point because you're doing it the old outdated way. Go to the tutorials watch the new UI videos tutorials.
Here, I will link it for you if you are unable to find it. :) https://unity3d.com/learn/tutorials/modules/beginner/ui
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Can CanvasRenderer provide third UV coordinates? 0 Answers
To see chosen random text UI Unity,To Access UI text 0 Answers