Indicates how the scene should be imported from USD to Unity.
Inheritance
SceneImportOptions
[Serializable]
public class SceneImportOptions
Fields
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
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
Force components and objects to be rebuilt, instead of reusing existing objects.
Declaration
Field Value
Declaration
public bool importCameras
Field Value
Declaration
public bool importHierarchy
Field Value
Declaration
Field Value
Declaration
public bool importMonoBehaviours
Field Value
Declaration
public bool importPointInstances
Field Value
Declaration
public bool importSceneInstances
Field Value
Declaration
public bool importSkinning
Field Value
Declaration
public bool importSkinWeights
Field Value
Declaration
public bool importTransforms
Field Value
Apply linear interpolation when requesting values between time samples.
Declaration
Field Value
Indicates how materials are handled, see enum for details.
Declaration
public MaterialImportMode materialImportMode
Field Value
A set of registered mappings from USD shader ID to Unity material.
Declaration
[NonSerialized]
public MaterialMap materialMap
Field Value
The default options for how to import meshes.
Declaration
public MeshImportOptions meshOptions
Field Value
Declaration
public PayloadPolicy payloadPolicy
Field Value
The root location in the Unity project where imported files will be created.
Declaration
public string projectAssetPath
Field Value
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
Field Value
The path in the USD file at which to import/export.
Declaration
public pxr.SdfPath usdRootPath
Field Value
Type |
Description |
pxr.SdfPath |
|
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
Properties
Indicates if the importer should attempt to bind materials.
Declaration
public bool ShouldBindMaterials { get; }
Property Value