Version: 2022.1
언어: 한국어

Unwrapping.GenerateSecondaryUVSet

매뉴얼로 전환
public static bool GenerateSecondaryUVSet (Mesh src);
public static bool GenerateSecondaryUVSet (Mesh src, UnwrapParam settings);

파라미터

src The Mesh to update.
settings Settings that configure the calculation.

반환

bool Returns true if the calculation succeeded. Otherwise, returns false.

설명

Compute a unique UV layout for a Mesh, and store it in Mesh.uv2.

When you import a model asset, you can instruct Unity to compute a lightmap UV layout for it using [[ModelImporter-generateSecondaryUV]] or the Model Import Settings Inspector. This function allows you to do the same to procedurally generated meshes.

If this process requires multiple UV charts to flatten the the mesh, the mesh might contain more vertices than before. If the mesh uses 16-bit indices (see Mesh.indexFormat) and the process would result in more vertices than are possible to use with 16-bit indices, this function fails and returns false.

See Also: Mesh class, ModelImporter class, Generating Lightmap UVs.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961