var first : Texture;
var second : Texture;
function Update() {
this.renderer.material.mainTexture = first;
this.renderer.material.mainTexture = second;
}
I’m trying to change a cube’s texture from a script . It’s meant to keep changing from one to the other while the game’s playing , but nothing happens ??? I’m kinda expecting it to go from on to the other and back . How do I make it do this?