You assign the elements (name, description, currency) to the same UITexts.
It is like you try to store 20 numbers (0,1,2...19), but you only have one variable (int) to store them.
Try to create the texts in the for loop as much as you need.
Here is an example:
public GameObject filePrefab; // to be able to instantiate new "files"
...
for (...)
{
// Create the file and assign the valuse
GameObject tempFile = Instantiate( filePrefab);
Text tempName = tempFile.GetChild(0).GetComponenet<Text>();
Text tempDescription = tempFile.GetChild(1).GetComponenet<Text>();
Text tempCurrency1Award = tempFile.GetChild(2).GetComponenet<Text>();
// Here you can set there position, etc.
...
// Assign the values
tempName.text = name;
tempDescription.text = description;
tempCurrency1Award.text = currency1Award.ToString();
}
Hope this helps.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…