docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UsdModularImporter

    Modular Importer that explicitly handle usd, usda, usdc and usdz format in Unity.

    Inheritance
    object
    Object
    AssetImporter
    ScriptedImporter
    ModularImporter
    UsdModularImporter
    Inherited Members
    ModularImporter.Graph
    ModularImporter.ImportSettingOverrides
    ModularImporter.ProcessImportResult(IReadOnlyList<IGraphValue>, AssetImportContext)
    ModularImporter.AddImportSettingOverride(IGraphValue)
    ModularImporter.RemoveImportSettingOverride(IGraphValue)
    ModularImporter.Validate()
    ScriptedImporter.SupportsRemappedAssetType(Type)
    AssetImporter.GetImportLog(string)
    AssetImporter.SetAssetBundleNameAndVariant(string, string)
    AssetImporter.GetAtPath(string)
    AssetImporter.SaveAndReimport()
    AssetImporter.AddRemap(AssetImporter.SourceAssetIdentifier, Object)
    AssetImporter.RemoveRemap(AssetImporter.SourceAssetIdentifier)
    AssetImporter.GetExternalObjectMap()
    AssetImporter.assetPath
    AssetImporter.importSettingsMissing
    AssetImporter.assetTimeStamp
    AssetImporter.userData
    AssetImporter.assetBundleName
    AssetImporter.assetBundleVariant
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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 DefaultUSD 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
    ModularImporter.DefaultGraphPath

    ErrorIdsToTrack

    A set of USD error ids to track for analytics.

    Declaration
    protected override HashSet<int> ErrorIdsToTrack { get; }
    Property Value
    Type Description
    HashSet<int>
    Overrides
    ModularImporter.ErrorIdsToTrack

    WarningIdsToTrack

    A set of USD warning ids to track for analytics.

    Declaration
    protected override HashSet<int> WarningIdsToTrack { get; }
    Property Value
    Type Description
    HashSet<int>
    Overrides
    ModularImporter.WarningIdsToTrack

    Methods

    OnFinishingAssetImport(GraphLogger)

    This method is called at the end of the import.

    Declaration
    protected override void OnFinishingAssetImport(GraphLogger graphLogger)
    Parameters
    Type Name Description
    GraphLogger graphLogger

    The graph logger.

    Overrides
    ModularImporter.OnFinishingAssetImport(GraphLogger)

    OnImportAsset(AssetImportContext)

    This method is called by the Asset pipeline to import files.

    Declaration
    public override void OnImportAsset(AssetImportContext ctx)
    Parameters
    Type Name Description
    AssetImportContext 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
    ModularImporter.OnImportAsset(AssetImportContext)
    Remarks

    It is already implemented by the ModularImporter class to validate and execute the Graph. If the import is successful, this method will call ProcessImportResult(IReadOnlyList<IGraphValue>, AssetImportContext) with the result of the graph execution.

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