Enum AutoUnwrapSettings.Anchor
Defines the point from which ProBuilder performs UV transform operations.
After the initial projection into 2D space, ProBuilder translates UVs to the anchor position. Next, ProBuilder applies the offset and rotation, followed by the other settings.
Namespace: UnityEngine.ProBuilder
Syntax
public enum Anchor
Fields
Name | Description | Value |
---|---|---|
UpperLeft | The top left bounding point of the projected UVs is aligned with UV coordinate {0, 1}. |
0 |
UpperCenter | The center top bounding point of the projected UVs is aligned with UV coordinate {.5, 1}. |
1 |
UpperRight | The right top bounding point of the projected UVs is aligned with UV coordinate {1, 1}. |
2 |
MiddleLeft | The middle left bounding point of the projected UVs is aligned with UV coordinate {0, .5}. |
3 |
MiddleCenter | The center bounding point of the projected UVs is aligned with UV coordinate {.5, .5}. |
4 |
MiddleRight | The middle right bounding point of the projected UVs is aligned with UV coordinate {1, .5}. |
5 |
LowerLeft | The lower left bounding point of the projected UVs is aligned with UV coordinate {0, 0}. |
6 |
LowerCenter | The lower center bounding point of the projected UVs is aligned with UV coordinate {.5, 0}. |
7 |
LowerRight | The lower right bounding point of the projected UVs is aligned with UV coordinate {1, 0}. |
8 |
None | UVs are not aligned with any projection. |
9 |