How can I drag multiple files from Project to the Inspector?

How can I drag multiple files from Project to the Inspector?

I have an Image array on my script, and I need to drag a bunch of images into it, I could go one by one, but it’d be very annoying.

The problem is that if I have selected by game object, as soon as I click on the images I want to drag into the Script variable, the Inspector changes.

Hah! Lock icon on the top right of the Inspector.

Now how do I get them to stay in order…
I have 001, 002, 003, etc, and they go like 003, 001, 002, on the Inspector once I drag them.

1 Like

Well, instead of doing that we just loaded al the resources (textures) into an array, and therefore load the image sequence into the game object.

var frameDelay = 1;
var texture : Texture2D;

function Start () {
	var textures : Object[] = Resources.LoadAll("Images/seq", Texture2D);
	while (true) {
		for (var tex : Object in textures) {
			renderer.material.mainTexture = tex;
			yield WaitForSeconds (frameDelay);
		}
	}
}

Sorry for replying to my own topic, but hope this helps someone else in the future.

It did :slight_smile: Thanks! Never noticed that lock icon on the inspector until you mentioned it.