the second is: renderer.material.SetTextureOffset ("_MainTex", offset); and also what does "_MainTex" do in this code? and last: What is this line of code doing ?????7 var offset = Vector2 (uIndex * size.x, 2.0 - size.y - vIndex * size.y); so if someone can explain that to me i would be very great full thanks :)
(comments are locked)
|
|
This script cycles through the lines and columns of a sprite texture to get a flipbook animation effect. It then supplies the new u and v texture coordinates to the renderer. _MainTex is the name of a texture in a shader, usually the main texture of the material. Take a look at he reference: Thank you very very much :)
Feb 28 '11 at 12:22 PM
MC HALO
(comments are locked)
|
