Use a Texture2D via string?

I need to apply a Texture2D to a GUI Object, but before I assign the texture, I need it to randomly select a texture2d from a list of names which correspond to the Texture2D names. So what I’m asking, Is how do I use the strings that are in the List to call the texture2D equivalent of it.

I currently get the error of ‘cannot implicitly convert type string to UnityEngine.Texture2D’

this is the line where I get the list name
heldItemIcon = itemSecondNamesList[1];

For now, the random selection isn’t applied, to make testing easier.

any help would be appreciated.

Store an array of Texture2D objects - you can populate it in the Inspector - and pick from that list instead.