Just for making things clear, I’m a developer. I have only minimal knowledge of how 3D texturing works.
In my project I created a dynamic mesh. Everything goes fine, except for UVS: I just cant understand in any way what do UVs do ![]()
In all examples and example projects I found this code useful for assigning values to the UV array:
for(int a=0;a<UVs.Length;a++)
{ [INDENT]UVs[a] = new Vector2(Verts[a].x,Verts[a].y);// "Verts" is the vertices array
[/INDENT]}
I only understood that there is some relation between the vertices and the UVs (usually the length of UVs is the same as the length of the vertices - and I am using the verices array to initialize the UVs values).
The code works perfectly, but what exactly the above code does? What’s the information stored by the UVs array?
I need to control in more detail the way the mesh is textured.
Thanks for help
Simone