docs.unity3d.com
    Show / Hide Table of Contents

    Class PiXYZImporter

    Class PiXYZImporter.

    Inheritance
    Object
    PiXYZImporter
    Namespace: UnityEngine.Industrial.Configuring.Importers.PiXYZProductImporter.Editor
    Syntax
    [ConfiguratorImporter]
    public class PiXYZImporter : IImporter

    Fields

    importSettingsPath

    The import settings path

    Declaration
    public static string importSettingsPath
    Field Value
    Type Description
    String

    rulesPath

    The rules path

    Declaration
    public static string rulesPath
    Field Value
    Type Description
    String

    Methods

    ImportAllPaths(IEnumerable<String>)

    Imports all paths.

    Declaration
    public 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>>.

    Implements
    IImporter.ImportAllPaths(IEnumerable<String>)

    ImportObject(Object, Product)

    Imports the object.

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

    The object.

    Product productSource

    The product source.

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

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

    Implements
    IImporter.ImportObject(Object, Product)

    ImportPath(String)

    Imports the path.

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

    The path.

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

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

    Implements
    IImporter.ImportPath(String)

    OnPostProductImport(Configurator)

    Called when [post product import].

    Declaration
    public void OnPostProductImport(Configurator configurator)
    Parameters
    Type Name Description
    Configurator configurator

    The configurator.

    Implements
    IImporter.OnPostProductImport(Configurator)

    SaveObjectNonPersistentDependencies(Object, Product)

    Saves the object non persistent dependencies.

    Declaration
    public Task<(bool, Object)> SaveObjectNonPersistentDependencies(Object modelObj, Product productSource = null)
    Parameters
    Type Name Description
    Object modelObj

    The model object.

    Product productSource

    The product source.

    Returns
    Type Description
    Task<ValueTuple<Boolean, Object>>

    System.ValueTuple<System.Boolean, UnityEngine.Object>.

    Implements
    IImporter.SaveObjectNonPersistentDependencies(Object, Product)
    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