Class UsdModularImporter
Modular Importer that explicitly handle usd, usda, usdc and usdz format in Unity.
Inherited Members
Namespace: UnityEditor .Importer.USD
Assembly: Unity.Importer.USD.Editor.dll
Syntax
[ScriptedImporter(2, new string[] { "usd", "usda", "usdc", "usdz" }, new string[] { }, 100, AllowCaching = false)]
public class UsdModularImporter : ModularImporter
Fields
isUsdRoot
Use this setting on usd root composition to let the import know it should process this file as a USDStage and generate the assets from the composition it contains.
Declaration
public bool isUsdRoot
Field Value
Type | Description |
---|---|
bool |
Remarks
- Usdz files are automatically imported and this setting doesn't have any effect on assets with this extension.
- Non imported assets (isUsdRoot == false) will generate a Default
USD asset.
Properties
DefaultGraphPath
The path to the default USD ImporterGraph made by Unity and used by any newly imported asset.
Declaration
protected override string DefaultGraphPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ErrorIdsToTrack
A set of USD error ids to track for analytics.
Declaration
protected override HashSet<int> ErrorIdsToTrack { get; }
Property Value
Overrides
WarningIdsToTrack
A set of USD warning ids to track for analytics.
Declaration
protected override HashSet<int> WarningIdsToTrack { get; }
Property Value
Overrides
Methods
OnFinishingAssetImport(GraphLogger)
This method is called at the end of the import.
Declaration
protected override void OnFinishingAssetImport(GraphLogger graphLogger)
Parameters
Type | Name | Description |
---|---|---|
Graph |
graphLogger | The graph logger. |
Overrides
OnImportAsset(AssetImportContext)
This method is called by the Asset pipeline to import files.
Declaration
public override void OnImportAsset(AssetImportContext ctx)
Parameters
Type | Name | Description |
---|---|---|
Asset |
ctx | This argument contains all the contextual information needed to process the import event and is also used by the custom importer to store the resulting Unity Asset. |
Overrides
Remarks
It is already implemented by the Modular