docs.unity3d.com
    Show / Hide Table of Contents

    Class ImportAdapter

    Import adapter

    The class is mainly used to group import settings and provide standard import execution

    Inheritance
    Object
    ImportAdapter
    Namespace: Unity.Industrial.Forma.Editor.Adapters
    Syntax
    [MovedFrom(true, "UnityEditor.Industrial.Configuring.Adapter", "Unity.Industrial.Configurator.Editor", null)]
    [Serializable]
    public sealed class ImportAdapter

    Constructors

    ImportAdapter(FormaAdapter)

    Constructor

    Declaration
    public ImportAdapter(FormaAdapter adapter)
    Parameters
    Type Name Description
    FormaAdapter adapter

    Fields

    Action

    Import action that will be executed

    Declaration
    [SerializeField]
    public ImportAction Action
    Field Value
    Type Description
    ImportAction

    Adapter

    Adapter

    Declaration
    [HideInInspector]
    [SerializeField]
    public FormaAdapter Adapter
    Field Value
    Type Description
    FormaAdapter

    Ignore

    Ignore this Forma Import Adapter in import processes

    Declaration
    [Tooltip("Ignore this Forma Import Adapter in import processes")]
    public bool Ignore
    Field Value
    Type Description
    Boolean

    ImportPriority

    Importers are run successively until one adapter supports the import source. The highest priority adapters are run first.

    Declaration
    [Tooltip("Importers are run successively until one adapter supports the import source. The highest priority adapters are run first.")]
    public int ImportPriority
    Field Value
    Type Description
    Int32

    MenuAction

    Import menu action when a Forma product is imported

    Declaration
    [SerializeField]
    public ImportMenuAction MenuAction
    Field Value
    Type Description
    ImportMenuAction

    Properties

    ImporterMenuItem

    Import menu item

    Declaration
    public IImporterGenericMenuItem ImporterMenuItem { get; }
    Property Value
    Type Description
    IImporterGenericMenuItem

    LastImportContext

    Last import context used for providing debug output

    Declaration
    public AdapterImportContext LastImportContext { get; set; }
    Property Value
    Type Description
    AdapterImportContext

    Methods

    Import(IImportSource)

    Import action

    Declaration
    public async Task<IImportOutput> Import(IImportSource source)
    Parameters
    Type Name Description
    IImportSource source
    Returns
    Type Description
    Task<IImportOutput>

    OnPostProductImport(Configurator)

    Called when a product is imported

    Declaration
    public void OnPostProductImport(Configurator configurator)
    Parameters
    Type Name Description
    Configurator configurator
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023