Material tiling and offset in unity

Posted by Simran kaur on Game Development See other posts from Game Development or by Simran kaur
Published on 2014-08-22T23:55:31Z Indexed on 2014/08/23 4:28 UTC
Read the original article Hit count: 232

Filed under:
|
|

Ambiguity: What exactly is the difference between Tiling the material and Offset of material?

Need to do:

I need the material to be repeated n times on the object where I need to set the value of n via script.How do I do it?

It seems to happen through Tiling(tried via inspector) but again what is difference between mainTextureOffset and setTextureOffset?

Tried:

Following is the line of code that I tried to repeat the texture n number of times on an object(repeat across the width of object), but it does nothing significant that I can see.

© Game Development or respective owner

Related posts about unity

Related posts about textures