Class UnwrapParameters
Stores parameters that define how ProBuilder unwraps UV2s when Auto UV mode is on.
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
[Serializable]
public sealed class UnwrapParameters
Constructors
Name | Description |
---|---|
UnwrapParameters() | Creates a set of UnwrapParameters using default values. |
UnwrapParameters(UnwrapParameters) | Creates a set of unwrap parameters by copying values from another set. |
Properties
Name | Description |
---|---|
angleError | Gets or sets the deviation of UV angles from geometry angles, as a percentage. |
areaError | Gets or sets the deviation of the UV triangles area from geometry triangles if they were uniformly scaled, as a percentage. |
hardAngle | Gets or sets the angle that generates seams between neighbor triangles. |
packMargin | Gets or sets the pack margin in pixels for a mesh that covers an entire 1024x1024 lightmap. |
Methods
Name | Description |
---|---|
Reset() | Resets the unwrap parameter values to their defaults. |
ToString() | Returns a string representation of the UnwrapParameters. |