docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductSourceUtils

    Product Source utility class.

    Inheritance
    Object
    ProductSourceUtils
    Namespace: UnityEngine.Industrial.Configuring.ConfiguratorRuntime
    Syntax
    public static class ProductSourceUtils

    Methods

    FindAndDestroyFormaManagedProductSource<T>(Configurator)

    Find and delete the product source of type T (if exist)

    Declaration
    public static void FindAndDestroyFormaManagedProductSource<T>(Configurator configurator)
        where T : IProductSource
    Parameters
    Type Name Description
    Configurator configurator
    Type Parameters
    Name Description
    T

    FindOrCreateFormaManagedProductSource<T>(Configurator)

    Return the firstOrDefault IProductSource or type

    Declaration
    public static T FindOrCreateFormaManagedProductSource<T>(Configurator configurator)
        where T : IProductSource
    Parameters
    Type Name Description
    Configurator configurator
    Returns
    Type Description
    T

    IProductSource found

    Type Parameters
    Name Description
    T

    IProductSource type

    Exceptions
    Type Condition
    NullReferenceException
    ArgumentNullException

    Invalid type

    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