Class UnwrapParameters | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class UnwrapParameters

    Store UV2 unwrapping parameters.

    Inheritance
    System.Object
    UnwrapParameters
    Namespace: UnityEngine.ProBuilder
    Syntax
    [Serializable]
    public sealed class UnwrapParameters

    Constructors

    UnwrapParameters()

    Declaration
    public UnwrapParameters()

    UnwrapParameters(UnwrapParameters)

    Copy constructor.

    Declaration
    public UnwrapParameters(UnwrapParameters other)
    Parameters
    Type Name Description
    UnwrapParameters other

    The UnwrapParameters to copy properties from.

    Properties

    angleError

    Declaration
    public float angleError { get; set; }
    Property Value
    Type Description
    System.Single

    Measured in percents. Angle error measures deviation of UV angles from geometry angles. Area error measures deviation of UV triangles area from geometry triangles if they were uniformly scaled.

    areaError

    Declaration
    public float areaError { get; set; }
    Property Value
    Type Description
    System.Single

    Does... something.

    hardAngle

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

    Angle between neighbor triangles that will generate seam.

    packMargin

    Declaration
    public float packMargin { get; set; }
    Property Value
    Type Description
    System.Single

    Measured in pixels, assuming mesh will cover an entire 1024x1024 lightmap.

    Methods

    Reset()

    Reset the unwrap parameters to default values.

    Declaration
    public void Reset()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    Back to top
    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