Unwrapping 展开


This class holds everything you may need in regard to uv-unwrapping.

这个类存放所有有关uv展开。

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.
 注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。

WARNING: preliminary interface, will be changed in future versions  e.g. in future it will contain possibility to pack your uvs optimally etc.

警告:初始接口,将改变以后的版本,如,以后它将包含可能打包UV优化等等。

Class Functions类函数

  • GeneratePerTriangleUV
    Will generate per-triangle uv (3 uv pairs for each triangle) with default settings
       将生成per-triangle UV(每三角形3对uv)带有默认参数,你需要自己合并它们。
  • GenerateSecondaryUVSet
    Will auto generate uv2 with default settings for provided mesh, and fill them in
       为提供
    的网格,将自动生成uv2,带有默认设置,并填充。


,