docs.unity.cn
    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)

    Imports the path.

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

    The path.

    Returns
    Type Description
    Task<IEnumerable<Product>>

    IEnumerable<Product>.

    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>>

    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.

    OnProductImportPostProcess(Configurator)

    Called when [product import post process].

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

    The configurator.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021