So, I currently have my game load a list of saves to a text object and split them with some line spacing:
public void LoadSaveList()
{
var saveList = Directory.GetFiles(Constants.SAVEDIR);
var finalSaveString = new StringBuilder();
if (saveList.Any())
{
foreach (var s in saveList)
{
string fileName = s.Substring(66);
if (finalSaveString.Length <= 0)
{
finalSaveString.Append(fileName);
}
finalSaveString.Append("\n" + fileName);
}
saveText.text = finalSaveString.ToString();
return;
}
saveText.text = "No saves found.";
}
And now I am completely stuck on how I would be able to click one of the Save file names and set it as selected (change color or put a text box around it). I haven’t tried anything yet, because I’m lost on where to begin. ![]()