C# Class UnityEditor.Unwrapping

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

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GeneratePerTriangleUV ( Mesh src ) : Vector2[]

Will generate per-triangle uv (3 UVs for each triangle) with default settings.

GeneratePerTriangleUV ( Mesh src, UnwrapParam settings ) : Vector2[]

Will generate per-triangle uv (3 UVs for each triangle) with provided settings.

GenerateSecondaryUVSet ( Mesh src ) : void

Will auto generate uv2 with default settings for provided mesh, and fill them in.

GenerateSecondaryUVSet ( Mesh src, UnwrapParam settings ) : void

Will auto generate uv2 with provided settings for provided mesh, and fill them in.

Private Methods

Method Description
GeneratePerTriangleUVImpl ( Mesh src, UnwrapParam settings ) : Vector2[]
INTERNAL_CALL_GeneratePerTriangleUVImpl ( Mesh src, UnwrapParam &settings ) : Vector2[]

Method Details

GeneratePerTriangleUV() public static method

Will generate per-triangle uv (3 UVs for each triangle) with default settings.

public static GeneratePerTriangleUV ( Mesh src ) : Vector2[]
src UnityEngine.Mesh The source mesh to generate UVs for.
return Vector2[]

GeneratePerTriangleUV() public static method

Will generate per-triangle uv (3 UVs for each triangle) with provided settings.

public static GeneratePerTriangleUV ( Mesh src, UnwrapParam settings ) : Vector2[]
src UnityEngine.Mesh The source mesh to generate UVs for.
settings UnwrapParam Allows you to specify custom parameters to control the unwrapping.
return Vector2[]

GenerateSecondaryUVSet() public static method

Will auto generate uv2 with default settings for provided mesh, and fill them in.

public static GenerateSecondaryUVSet ( Mesh src ) : void
src UnityEngine.Mesh
return void

GenerateSecondaryUVSet() public static method

Will auto generate uv2 with provided settings for provided mesh, and fill them in.

public static GenerateSecondaryUVSet ( Mesh src, UnwrapParam settings ) : void
src UnityEngine.Mesh
settings UnwrapParam
return void