docs.unity.cn
    Show / Hide Table of Contents

    Class MeshImportSettings

    A collection of settings used when importing models to the ProBuilderMesh component.

    Inheritance
    Object
    MeshImportSettings
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.ProBuilder.MeshOperations
    Syntax
    [Serializable]
    public sealed class MeshImportSettings

    Properties

    quads

    Gets or sets whether to quadrangilize meshes (convert them to quads if possible).

    Declaration
    public bool quads { get; set; }
    Property Value
    Type Description
    Boolean

    smoothing

    Gets or sets whether to generate smoothing groups based on mesh normals.

    Declaration
    public bool smoothing { get; set; }
    Property Value
    Type Description
    Boolean

    smoothingAngle

    Gets or sets the allowable degree of difference between face normals when determining smoothing groups.

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

    Methods

    ToString()

    Returns a string representation of the options.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    String formatted as quads: [quads]\nsmoothing: [smoothing]\nthreshold: [threshold].

    Overrides
    Object.ToString()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Tuesday, June 13, 2023