Hey i made a list and a foreach loop but all my lables within the foreach loop is suck on top of eachothers :S could anyone help me sperate them
this i is my script
Hey i made a list and a foreach loop but all my lables within the foreach loop is suck on top of eachothers :S could anyone help me sperate them
this i is my script
You are not increasing the spacing at all so no wonder it will stack on each other.
If you like your Quest in a vertical list :
void QuestDropBox(){
int sizeBetween = 10;
int inbetween = 0;
foreach(string quests in quest){
GUI.Label(new Rect(10, 100 + inbetween, 300, 300), quests);
inbetween += sizeBetween;
}
}
Looks like some basic programming tutorials would be nice for you.
really i tried that but not exactly the same
i forgot that part
inbetween += sizeBetween;