Saturday, 26 September 2015

Unity 3D Texture Animation Tutorial

Unity 3D Texture Animation Tutorial
































DIRECT DOWNLOAD HERE









THIS IS BACKUP  IN TEXT FORM  



1. Create New java and name it : .....


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-











//GT5Material//

var texture1 : Texture2D;
var texture2 : Texture2D;
var texture3 : Texture2D;
var texture4 : Texture2D;
var texture5 : Texture2D;
var change : boolean = true;
function Start() {
        changeTexture();
}
function Update () {
}
function changeTexture () {
        while(change) {
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture1;      
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture2;
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture3;
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture4;
                yield WaitForSeconds(0.5);
                renderer.material.mainTexture = texture5;
        }
}






 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-



































































0 comments:

Post a Comment