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 SdfPath usdRootPath
Field Value
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 what type of import is being performed.
Declaration
public ImportType ImportType { get; set; }
Property Value
Indicates if the importer should attempt to bind materials.
Declaration
public bool ShouldBindMaterials { get; }
Property Value
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.