Material tiling and offset in unity
- by Simran kaur
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.