docs.unity3d.com
Search Results for

    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.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    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:

     `hardAngle: [hardAngle]`
    
     `packMargin: [packMargin]`
    
     `angleError: [angleError]`
    
     `areaError: [areaError]`
    
    Overrides
    object.ToString()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)