docs.unity3d.com
    Show / Hide Table of Contents

    Class UnwrapParameters

    Stores parameters that define how ProBuilder unwraps UV2s when Auto UV mode is on.

    Inheritance
    Object
    UnwrapParameters
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.ProBuilder
    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
    Single

    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
    Single

    hardAngle

    Gets or sets the angle that generates seams between neighbor triangles.

    Declaration
    public float hardAngle { get; set; }
    Property Value
    Type Description
    Single

    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
    Single

    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:

    hardAngle: [hardAngle]

    packMargin: [packMargin]

    angleError: [angleError]

    areaError: [areaError]

    Overrides
    Object.ToString()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023