docs.unity3d.com
    Show / Hide Table of Contents

    Class Imports

    Class managing the product imports

    Inheritance
    Object
    Imports
    Namespace: UnityEditor.Industrial.Configuring.UI
    Syntax
    public class Imports

    Fields

    ImportPathsWarningCount

    The import paths warning count

    Declaration
    public static int ImportPathsWarningCount
    Field Value
    Type Description
    Int32

    Properties

    FileSystemImporter

    Gets or sets the file system importer.

    Declaration
    public static IFileSystemImporter FileSystemImporter { get; set; }
    Property Value
    Type Description
    IFileSystemImporter

    The file system importer.

    Methods

    GetProductImportMenu()

    Gets the product import menu.

    Declaration
    public static GenericMenu GetProductImportMenu()
    Returns
    Type Description
    GenericMenu

    GenericMenu.

    ImportAllPaths(IEnumerable<String>)

    Imports all paths.

    Declaration
    public static Task<(bool, IEnumerable<Product>)> ImportAllPaths(IEnumerable<string> paths)
    Parameters
    Type Name Description
    IEnumerable<String> paths

    The paths.

    Returns
    Type Description
    Task<ValueTuple<Boolean, IEnumerable<Product>>>

    System.ValueTuple<System.Boolean, IEnumerable<Product>>.

    ImportFileSystem()

    Imports the file system.

    Declaration
    public static Task<IEnumerable<Product>> ImportFileSystem()
    Returns
    Type Description
    Task<IEnumerable<Product>>

    IEnumerable<Product>.

    ImportFilesystemObjectsByPaths(String[])

    Imports Filesystem Item(s) into Configurator

    Declaration
    public static Task<IEnumerable<Product>> ImportFilesystemObjectsByPaths(string[] paths)
    Parameters
    Type Name Description
    String[] paths

    The paths.

    Returns
    Type Description
    Task<IEnumerable<Product>>

    IEnumerable<Product>.

    ImportGameObject(Object, Boolean, Product)

    Imports the game object.

    Declaration
    public static Task<IEnumerable<Product>> ImportGameObject(Object obj, bool doPostProcess = true, Product productSource = null)
    Parameters
    Type Name Description
    Object obj

    The object.

    Boolean doPostProcess

    if set to true [do post process].

    Product productSource

    The product source.

    Returns
    Type Description
    Task<IEnumerable<Product>>

    IEnumerable<Product>.

    ImportPath(String, Boolean)

    Imports the path.

    Declaration
    public static Task<IEnumerable<Product>> ImportPath(string path, bool handleImportedObject = true)
    Parameters
    Type Name Description
    String path

    The path

    Boolean handleImportedObject

    handleImportedObject

    Returns
    Type Description
    Task<IEnumerable<Product>>

    string, IEnumerable<Product>.

    ImportPath(String, IImporter)

    Import a Path Using a Specific Importer

    Declaration
    public static Task<IEnumerable<Product>> ImportPath(string path, IImporter importer)
    Parameters
    Type Name Description
    String path

    The path

    IImporter importer

    Importer

    Returns
    Type Description
    Task<IEnumerable<Product>>

    Products

    ImportPaths(IEnumerable<String>)

    Imports the paths.

    Declaration
    public static Task<IEnumerable<Product>> ImportPaths(IEnumerable<string> paths)
    Parameters
    Type Name Description
    IEnumerable<String> paths

    The paths.

    Returns
    Type Description
    Task<IEnumerable<Product>>

    string, IEnumerable<Product>.

    ImportPrefab(Object, Product)

    Imports the prefab.

    Declaration
    public static Task<IEnumerable<Product>> ImportPrefab(Object obj, Product productSource = null)
    Parameters
    Type Name Description
    Object obj

    The object.

    Product productSource

    The product source.

    Returns
    Type Description
    Task<IEnumerable<Product>>

    IEnumerable<Product>.

    ImportPrefabs(IEnumerable<Object>, Product)

    Imports the prefabs.

    Declaration
    public static Task<IEnumerable<Product>> ImportPrefabs(IEnumerable<Object> objects, Product productSource = null)
    Parameters
    Type Name Description
    IEnumerable<Object> objects

    The objects.

    Product productSource

    The product source.

    Returns
    Type Description
    Task<IEnumerable<Product>>

    IEnumerable<Product>.

    ImportToProfile(IEnumerable<Product>)

    Adds a list of product variants to a profile

    Declaration
    public static void ImportToProfile(IEnumerable<Product> productPrefabs)
    Parameters
    Type Name Description
    IEnumerable<Product> productPrefabs

    The product prefabs.

    ImportUnityObjects(IEnumerable<Object>)

    Imports Unity Prefabs into Configurator

    Declaration
    public static Task<IEnumerable<Product>> ImportUnityObjects(IEnumerable<Object> objects)
    Parameters
    Type Name Description
    IEnumerable<Object> objects

    The objects.

    Returns
    Type Description
    Task<IEnumerable<Product>>

    IEnumerable<Product>.

    OnProductImportPostProcess(Configurator)

    Called when [product import post process].

    Declaration
    public static void OnProductImportPostProcess(Configurator configurator = null)
    Parameters
    Type Name Description
    Configurator configurator

    The configurator.

    PrepareForImport()

    Prepares for import.

    Declaration
    public static void PrepareForImport()
    Back to top
    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