I need to assign value from my array into gameobject text, but i dont have any idea on how to do it?
I need to assign value from my array into gameobject text, but i dont have any idea on how to do it?
You mean something like this .
publlic GameObject[] UItext;
then you will use it like this
void Start(){
foreach(GameObject uis in UItext){
uis.gameObject.GetComponent<Text>();
}
}
I hope it helps you.