I am working with a 3,2,1 array.
index 1 = Object.UID, "Name1"
index 2 = Object.UID, "Name2"
index 3 = Object.UID, "Name3"
when I load the game I have one sprite that spawns 3 so each one will have a unique UID, I also have a random name generator and it adds it to the Y of the array matching the UID to store the data. Now when I am in the game and select the Object I have a text that should display its name only, how do I get the Y from the array in the text?
so if I select Objust.UID 25 my code will search in the array for object.uid 25 now from that I want to display the name it was given.