Enum AutoUnwrapSettings.Anchor
The point from which UV transform operations will be performed.
After the initial projection into 2d space, UVs will be translated to the anchor position. Next, the offset and rotation are applied, followed by the various other settings.
Namespace: UnityEngine.ProBuilder
Syntax
public enum Anchor
Fields
Name | Description | Value |
---|---|---|
UpperLeft | The top left bound of the projected UVs is aligned with UV coordinate {0, 1}. |
0 |
UpperCenter | The center top bound of the projected UVs is aligned with UV coordinate {.5, 1}. |
1 |
UpperRight | The right top bound of the projected UVs is aligned with UV coordinate {1, 1}. |
2 |
MiddleLeft | The middle left bound 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 bound of the projected UVs is aligned with UV coordinate {1, .5}. |
5 |
LowerLeft | The lower left bound of the projected UVs is aligned with UV coordinate {0, 0}. |
6 |
LowerCenter | The lower center bound of the projected UVs is aligned with UV coordinate {.5, 0}. |
7 |
LowerRight | The lower right bound of the projected UVs is aligned with UV coordinate {1, 0}. |
8 |
None | UVs are not aligned following projection. |
9 |