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
UnwrapParameters()
Creates a set of UnwrapParameters using default values.
Declaration
public UnwrapParameters()
UnwrapParameters(UnwrapParameters)
Creates a set of unwrap parameters by copying values from another set.
Declaration
public UnwrapParameters(UnwrapParameters other)
Parameters
Type | Name | Description |
---|---|---|
UnwrapParameters | other | The UnwrapParameters to copy properties from. |
Properties
angleError
Gets or sets the deviation of UV angles from geometry angles, as a percentage.
Declaration
public float angleError { get; set; }
Property Value
Type | Description |
---|---|
float |
areaError
Gets or sets the deviation of the UV triangles area from geometry triangles if they were uniformly scaled, as a percentage.
Declaration
public float areaError { get; set; }
Property Value
Type | Description |
---|---|
float |
hardAngle
Gets or sets the angle that generates seams between neighbor triangles.
Declaration
public float hardAngle { get; set; }
Property Value
Type | Description |
---|---|
float |
packMargin
Gets or sets the pack margin in pixels for a mesh that covers an entire 1024x1024 lightmap.
Declaration
public float packMargin { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
Reset()
Resets the unwrap parameter values to their defaults.
Declaration
public void Reset()
ToString()
Returns a string representation of the UnwrapParameters.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String formatted as follows:
|