SetPerTriangleUV2() public static method

Will insert per-triangle uv2 in mesh and handle vertex splitting etc.

public static SetPerTriangleUV2 ( Mesh src, Vector2 triUV ) : void
src UnityEngine.Mesh
triUV Vector2
return void
 public static void GenerateSecondaryUVSet(Mesh src)
 {
     MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src));
 }
 public static void GenerateSecondaryUVSet(Mesh src, UnwrapParam settings)
 {
     MeshUtility.SetPerTriangleUV2(src, GeneratePerTriangleUV(src, settings));
 }
Example #3
0
 // 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)));
 }