Can I create a GameObject Array then fill UI text elements and then somehow use a For Loop to drop an Array of Int values inside those UI text boxes from largest to lowest?
I have tagged those UI text boxes with "Value" that I dropped them in the Array GameObject in the Unity Editor. The real question is how would I get the values out of an array name int Values[] to show up in my UI Text. I guess i would have to find some way to convert those int values into gameobjects and would like a for loop to iterate those values into from largest to lowest ie element0 = 100, element1 = 50, element2 = 25 etc.- can that be done or not? Some help would be appreciated.
Comment
Your answer
Follow this Question
Related Questions
How do I add 10 UI text elements to an array or a list...? 1 Answer
Convert a GUIText's number to an Integer value. 0 Answers
Best Practice For Storing RPG Dialogue? 1 Answer
Help me with text array. 1 Answer
Adding Text to Prefab 0 Answers