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

    Class SceneImportOptions

    Indicates how the scene should be imported from USD to Unity.

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

    Fields

    changeHandedness

    Typically USD data is right-handed and Unity is left handed; this option indicates how that conversion should be handled.

    Declaration
    public BasisTransformation changeHandedness
    Field Value
    Type Description
    BasisTransformation

    enableGpuInstancing

    Enable GPU instancing on materials for point and scene instances. Note this may negatively impact framerate in some cases.

    Declaration
    public bool enableGpuInstancing
    Field Value
    Type Description
    Boolean

    forceRebuild

    Force components and objects to be rebuilt, instead of reusing existing objects.

    Declaration
    public bool forceRebuild
    Field Value
    Type Description
    Boolean

    importCameras

    Declaration
    public bool importCameras
    Field Value
    Type Description
    Boolean

    importHierarchy

    Declaration
    public bool importHierarchy
    Field Value
    Type Description
    Boolean

    importMeshes

    Declaration
    public bool importMeshes
    Field Value
    Type Description
    Boolean

    importMonoBehaviours

    Declaration
    public bool importMonoBehaviours
    Field Value
    Type Description
    Boolean

    importPointInstances

    Declaration
    public bool importPointInstances
    Field Value
    Type Description
    Boolean

    importSceneInstances

    Declaration
    public bool importSceneInstances
    Field Value
    Type Description
    Boolean

    importSkinning

    Declaration
    public bool importSkinning
    Field Value
    Type Description
    Boolean

    importSkinWeights

    Declaration
    public bool importSkinWeights
    Field Value
    Type Description
    Boolean

    importTransforms

    Declaration
    public bool importTransforms
    Field Value
    Type Description
    Boolean

    interpolate

    Apply linear interpolation when requesting values between time samples.

    Declaration
    public bool interpolate
    Field Value
    Type Description
    Boolean

    materialImportMode

    Indicates how materials are handled, see enum for details.

    Declaration
    public MaterialImportMode materialImportMode
    Field Value
    Type Description
    MaterialImportMode

    materialMap

    A set of registered mappings from USD shader ID to Unity material.

    Declaration
    [NonSerialized]
    public MaterialMap materialMap
    Field Value
    Type Description
    MaterialMap

    meshOptions

    The default options for how to import meshes.

    Declaration
    public MeshImportOptions meshOptions
    Field Value
    Type Description
    MeshImportOptions

    payloadPolicy

    Declaration
    public PayloadPolicy payloadPolicy
    Field Value
    Type Description
    PayloadPolicy

    projectAssetPath

    The root location in the Unity project where imported files will be created.

    Declaration
    public string projectAssetPath
    Field Value
    Type Description
    String

    scale

    A uniform scale to apply to the entire imported scene. Note that this scale is baked into every object, which is required for the Unity skinned mesh renderer, since it uses a parent-relative mesh baking scheme.

    Declaration
    public float scale
    Field Value
    Type Description
    Single

    usdRootPath

    The path in the USD file at which to import/export.

    Declaration
    public pxr.SdfPath usdRootPath
    Field Value
    Type Description
    pxr.SdfPath

    useDisplayColorAsFallbackMaterial

    When no material is bound, setup a default material to consume the display color. If the object color is not imported, a default white material will be assigned.

    Declaration
    public bool useDisplayColorAsFallbackMaterial
    Field Value
    Type Description
    Boolean

    Properties

    ShouldBindMaterials

    Indicates if the importer should attempt to bind materials.

    Declaration
    public bool ShouldBindMaterials { get; }
    Property Value
    Type Description
    Boolean
    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