Okay … so the array of textures is set. And it animates the way I want it.
But what should I add to the following script to fade one texture into the next.
var textures : Texture[ ];
var changeInterval = 1;
function Update() {
if( textures.length == 0 )
var index : int = Time.time / changeInterval;
index = index % textures.length;
renderer.material.mainTexture = textures[index];
}
The way you have it written you would apply that script to the object displaying the textures in question. With that in mind I have little confidence that your code will even do anything though. If you set the textures array then it’s length will be greater than zero and the code in the if block will never get executed, no texture swapping…
actually it is working
The images do get displayed like a slideshow on a plasma tv