How do i load entire folders into arrays?

I’ve seen this already asked but i’ve not seen any useful or working answer to my problem so i’ve gotta ask it in a little bit specific way.

I’ve got several folders, loaded with images. By now all those images in one of them have the same name and a number. the usual way now would be run through their numbers, but i’ve been asked to do it counting with they could have different names.

anyway, by now, this is my folder

http://i304.photobucket.com/albums/nn200/bateras/img1.jpg

From my script, i need to load an array with those images for each folder, which means i need to have 3 “catX” arrays with their respective images, which means i need to check what’s inside “ImagenesGaleria”, inside “Editor”

and i can’t do it. I’ve tried with “Resources.loadAll” and nothing happened.

why do you have your images stored under the folder Editor? I believe that is usually used by Unity for other purposes.

If you want to use Resources.Load, I believe you have to create a folder called Resources and place your images under that directory, for example “Resources/ImagenesGaleria/Catx”

Then you would use Resources.Loadall with that particular directory.
OR
If you know the names of the files, I guess you can use Resources.Load and manually add them to the array with a simple loop structure.

Edit: Making a change to add some code according to comments to try and explain how I would separate the “folders” for your system.
This code is in C#. Showing you the struct I define, and the start function using the method I describe in the comments.

public struct NumAndImages
{
    uint x;
    Texture2D[] texArray;

    public uint X
    {
        get
        {
            return x;
        }
        set
        {
            x = value;
        }
    }

    public Texture2D[] aTexture
    {
        get
        {
            return texArray;
        }
        set
        {
            texArray = value;
        }
    }
}

void Start()
{
    ArrayList textureArrays = new ArrayList();
    bool noImage = false;
    uint counter = 0;
    while(!noImage)
    {
        NumAndImages NAI;
        NAI.X = counter;
        NAI.aTexture = Resources.LoadAll("ImagenesGaleria/Cat" + counter);
        if(NAI.aTexture == null)
        {
            noImage = true;
            print("Found up to Cat" + counter-1 + ". No more images to load");
        }
        else
        {
            textureArrays.Add(NAI);
        }
    }

    //how many catx do I have
    int howmany = textureArrays.Count;

    //Load an image from the first catx
    NumAndImages NAI = textureArrays[0];
    Texture2D image = NAI.aTexture[0];

    //load the last image in the last catx
    NumAndImages NAI = textureArrays[textureArrays.Count];
    Texture2D image = NAI.aTexture[NAI.aTexture.Length];


}

Check out both of these: