docs.unity3d.com
    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
    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