docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SceneImportOptions

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

    Inheritance
    object
    SceneImportOptions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Formats.USD
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class SceneImportOptions

    Fields

    Name Description
    changeHandedness

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

    enableGpuInstancing

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

    forceRebuild

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

    importCameras
    importHierarchy
    importMeshes
    importMonoBehaviours
    importPointInstances
    importSceneInstances
    importSkinWeights
    importSkinning
    importTransforms
    interpolate

    Apply linear interpolation when requesting values between time samples.

    materialImportMode

    Indicates how materials are handled, see enum for details.

    materialMap

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

    meshOptions

    The default options for how to import meshes.

    payloadPolicy
    projectAssetPath

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

    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.

    usdRootPath

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

    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.

    Properties

    Name Description
    ImportType

    Indicates what type of import is being performed.

    ShouldBindMaterials

    Indicates if the importer should attempt to bind materials.

    In This Article
    Back to top
    Copyright © 2023 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)