Hi guys,thanks for looking into this question
I have a problem for an shop i am trying to make for my game.I am using a public List (in editor) to add the cost and stuff.
public class Buyable
{
public string name;
public Texture2D CharTexture;
public int Cost;
public bool Unlocked;
}
My problem now is how do i use this to create this

with this script
if (GUI.Button (new Rect (10,10, 100, 50), icon)) {
print ("you clicked the icon");
}
if (GUI.Button (new Rect (10,70, 100, 20), "This is text")) {
print ("you clicked the text button");
}
like use the (texture 2d) in list to show the texture on the icon and (Name) in list to show the name.
I need to put up a new icon and name for every new element i put in the editor list.I tried to do this my self but i have no idea how to start this and i googled it but no hope.
I tried to explain as detailed as i can.I hope u guys will understand it.Thanks