Accessing textures through code.

Hey guys,

I'm trying to figure out how I could access textures through code. I know I could just declare var tex1 : Texture2D; and assign it through the inspector but say I have a hundred textures I need to access in my script.

I'm looking for something similar to this:

var textures : Array = new Array ();

function Start (

for (i=0;i<100;i++) {

    textures.Add(find_texture_i_in_my_project_folder);

}

}

Say all these textures are in a folder called Textures, which is inside my Project folder. The order in which I add them is unimportant. Is there a way to do this? Because I often find myself dragging and dropping a LOT of textures to scripts, and it gets tedious ;).

Something like this?

var textureNames:String[] = new String[x];
var textures:Texture2D[] = new Texture2D[x];
function Start(){
    for(i=0;i<textureNames.length;i++){ textures _= Resources.Load(textureNames*);*_
_*}*_
_*```*_
<em>_<p>That would load the texture named 'textureNames*' from the folder Resources, located in the root of your project. Replace '<em>x</em>' with the actual number of textures. Refer to:</p>*_</em>
<em>_*<p><a href="http://unity3d.com/support/documentation/ScriptReference/Resources.Load.html" rel="nofollow">UNITY: Resources.Load()</a> or*_</em>
<em>_*<a href="http://unity3d.com/support/documentation/ScriptReference/Resources.LoadAll.html" rel="nofollow">UNITY: Resources.LoadAll()</a></p>*_</em>