|
This class holds everything you may need in regard to uv-unwrapping.
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
WARNING: preliminary interface, will be changed in future versions e.g. in future it will contain possibility to pack your uvs optimally etc.
GeneratePerTriangleUV |
Will generate per-triangle uv (3 uv pairs for each triangle) with default settings |
GenerateSecondaryUVSet |
Will auto generate uv2 with default settings for provided mesh, and fill them in |