C# Class UnityEditor.Unwrapping

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

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GeneratePerTriangleUVImpl ( Mesh src, UnwrapParam settings ) : Vector2[]
INTERNAL_CALL_GeneratePerTriangleUVImpl ( Mesh src, UnwrapParam &settings ) : Vector2[]

Method Details

GeneratePerTriangleUV() public static méthode

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.
Résultat Vector2[]

GeneratePerTriangleUV() public static méthode

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.
Résultat Vector2[]

GenerateSecondaryUVSet() public static méthode

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

public static GenerateSecondaryUVSet ( Mesh src ) : void
src UnityEngine.Mesh
Résultat void

GenerateSecondaryUVSet() public static méthode

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
Résultat void