We will consider several software design patterns to manage metadata associated with each photographic art piece, including in the first two sub-topics—separate lists and data structures—for your edification. Then, we'll actually use Scriptable Objects (explained next) as the preferred data management technique in our project.
Using lists
One approach to adding more data about each photo could be toadd more lists to thePopulateArtFramesscript, one for each of the data fields. For example, the script may contain the following code (no need to add this code yourself—this is only for teaching purposes):
public Texture[] images;
public string[] titles;
public string[] artists;
public string[] descriptions;
In such a case, theInspectorwould show the following (I limited the list to four items for brevity):
When you have lists in the Unity Inspector, it's not unusual...