- Home /
What is Mesh UV?
The Unity documentation assumes I know what UV is...but I don't. What is Mesh.UV and what is its purpose?
Their description is:
The base texture coordinates of the mesh.
Not helpful unless I already know what it is...
Answer by robertbu · Aug 24, 2014 at 05:07 AM
Mesh.uv is an array of Vector2s that can have values between (0,0) and (1,1). The values represent fractional offsets into a texture. For example, (0,0) is the lower left corner and (0.5, 0.5) is the middle of the texture. When Mesh.uv exists (it is not required), there is a on-to-on map between the coordinates and and the vertices in Mesh.vertices. The practical uses is to be able to map arbitrary portions of the texture to specific triangles. For example, they allow you to create a cube in which each side is a different texture.
http://answers.unity3d.com/questions/542787/change-texture-of-cube-sides.html
If you Google "UV coordinates," you will find in-depth presentation of this concept.
Your answer
Follow this Question
Related Questions
Assigning UV Map to model at runtime 0 Answers
A way to "fold" a texture on a mesh? 1 Answer
Does Unity support multi-tile texture workflows? 0 Answers
Change UV texture on certain tiles? 0 Answers