Various utilities for mesh manipulation.
/// <summary> /// <para>Will auto generate uv2 with provided settings for provided mesh, and fill them in.</para> /// </summary> /// <param name="src"></param> /// <param name="settings"></param> public static void GenerateSecondaryUVSet(Mesh src, UnwrapParam settings) { MeshUtility.SetPerTriangleUV2(src, Unwrapping.GeneratePerTriangleUV(src, settings)); }
// Will auto generate uv2 with default settings for provided mesh, and fill them in public static bool GenerateSecondaryUVSet(Mesh src) { return(MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src))); }
// Will auto generate uv2 with provided settings for provided mesh, and fill them in public static bool GenerateSecondaryUVSet(Mesh src, UnwrapParam settings) { return(MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src, settings))); }
public static void GenerateSecondaryUVSet(Mesh src) { MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src)); }