Unity 3D Texture Animation Tutorial

Advertisemen

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;
        }
}






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



































































Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Tutorial Unity 3D