Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Unwrapping

class in UnityEditor

Description

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

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

Static Methods

GeneratePerTriangleUVWill generate per-triangle uv (3 UVs for each triangle) with default settings.
GenerateSecondaryUVSetWill auto generate uv2 with default settings for provided mesh, and fill them in.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答