private Texture2D pages;
// Doesn't work
string bookTitle = BookData.m_BookData[ID].GetTitle();
pages = (Texture2D)Resources.LoadAll("BookPages/" + bookTitle, typeof(Texture2D));
// Work, but can only load one at a time
string textureLocation = "BookPages/" + BookData.m_BookData[0].GetTitle() + "/1";
pages[0] = (Texture2D)Resources.Load(textureLocation, typeof(Texture2D));
I need to load all of the textures in a folder, each folder have different number of files.
But LoadAll will only load as GameObject.