docs.unity3d.com
Search Results for

    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.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.ProBuilder.MeshOperations
    Assembly: Unity.ProBuilder.dll
    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
    bool

    smoothing

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

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

    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
    float

    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()
    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)