Class MeshImportOptions | USD | 2.0.0-exp.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class MeshImportOptions

    Indicates how values are imported from the given scene into a UnityEngine.Mesh object.

    Inheritance
    Object
    MeshImportOptions
    Namespace: Unity.Formats.USD
    Syntax
    [Serializable]
    public class MeshImportOptions

    Fields

    boundingBox

    Declaration
    public ImportMode boundingBox
    Field Value
    Type Description
    ImportMode

    color

    Declaration
    public ImportMode color
    Field Value
    Type Description
    ImportMode

    debugShowSkeletonBindPose

    When true, instance cubes onto each joint of the bind pose. These cubes will be presented in world space, the inverse of the actual bind pose.

    Declaration
    public bool debugShowSkeletonBindPose
    Field Value
    Type Description
    Boolean

    debugShowSkeletonRestPose

    When true, instance cubes onto each joint of the rest pose.

    Declaration
    public bool debugShowSkeletonRestPose
    Field Value
    Type Description
    Boolean

    generateLightmapUVs

    If true, a secondary UV set will be generated automatically for lightmapping.

    Declaration
    public bool generateLightmapUVs
    Field Value
    Type Description
    Boolean

    normals

    Declaration
    public ImportMode normals
    Field Value
    Type Description
    ImportMode

    points

    If true, the vertex positions of the mesh will be imported.

    Declaration
    public ImportMode points
    Field Value
    Type Description
    ImportMode

    tangents

    Declaration
    public ImportMode tangents
    Field Value
    Type Description
    ImportMode

    texcoord0

    Declaration
    public ImportMode texcoord0
    Field Value
    Type Description
    ImportMode

    texcoord1

    Declaration
    public ImportMode texcoord1
    Field Value
    Type Description
    ImportMode

    texcoord2

    Declaration
    public ImportMode texcoord2
    Field Value
    Type Description
    ImportMode

    texcoord3

    Declaration
    public ImportMode texcoord3
    Field Value
    Type Description
    ImportMode

    topology

    If true, the topology (triangles/faces) of the mesh will be imported.

    Declaration
    public ImportMode topology
    Field Value
    Type Description
    ImportMode

    triangulateMesh

    If true, triangulates the mesh. Should only be set to false if the mesh is guaranteed to be a valid triangle mesh before import.

    Declaration
    public bool triangulateMesh
    Field Value
    Type Description
    Boolean

    unwrapAngleError

    Maximum allowed angle distortion (0..1).

    Declaration
    public float unwrapAngleError
    Field Value
    Type Description
    Single

    unwrapAreaError

    Maximum allowed area distortion (0..1).

    Declaration
    public float unwrapAreaError
    Field Value
    Type Description
    Single

    unwrapHardAngle

    This angle (in degrees) or greater between triangles will cause seam to be created.

    Declaration
    public float unwrapHardAngle
    Field Value
    Type Description
    Single

    unwrapPackMargin

    How much uv-islands will be padded, in pixels.

    Declaration
    public int unwrapPackMargin
    Field Value
    Type Description
    Int32
    Remarks

    Note that the Unity UnwrapParams API is actually specified in a unitless number. To convert pixels to this unitless value, this number is divided by 1024.

    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