This class holds everything you may need in regard to uv-unwrapping.
public static Vector2[] GeneratePerTriangleUV(Mesh src) { UnwrapParam settings = default(UnwrapParam); UnwrapParam.SetDefaults(out settings); return(Unwrapping.GeneratePerTriangleUV(src, settings)); }
public static void GenerateSecondaryUVSet(Mesh src, UnwrapParam settings) { MeshUtility.SetPerTriangleUV2(src, Unwrapping.GeneratePerTriangleUV(src, settings)); }
internal static Vector2[] GeneratePerTriangleUVImpl(Mesh src, UnwrapParam settings) { return(Unwrapping.INTERNAL_CALL_GeneratePerTriangleUVImpl(src, ref settings)); }
public static Vector2[] GeneratePerTriangleUV(Mesh src, UnwrapParam settings) { return(Unwrapping.GeneratePerTriangleUVImpl(src, settings)); }