docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductSourceUtils

    Product Source utility class.

    Inheritance
    Object
    ProductSourceUtils
    Namespace: Unity.Industrial.Forma.Core.AddressableSources
    Syntax
    [MovedFrom(true, "UnityEngine.Industrial.Configuring.ConfiguratorRuntime", "Unity.Industrial.Configurator", null)]
    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 first IProductSource of type T or create and return a new IProductSource of type T.

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

    Configurator to check for IProductSource

    Returns
    Type Description
    T

    IProductSource found

    Type Parameters
    Name Description
    T

    IProductSource type

    Exceptions
    Type Condition
    NullReferenceException
    ArgumentNullException

    Invalid type

    FindOrCreateFormaManagedProductSource<T>(Configurator, out T)

    Return the first IProductSource of type T or create and return a new IProductSource of type T and return whether or not an existing IProductSource was found

    Declaration
    public static bool FindOrCreateFormaManagedProductSource<T>(Configurator configurator, out T productSource)
        where T : IProductSource
    Parameters
    Type Name Description
    Configurator configurator

    Configurator to check for IProductSource

    T productSource
    Returns
    Type Description
    Boolean

    True if existing IProductSource was found. False if new IProductSource was created.

    Type Parameters
    Name Description
    T

    IProductSource type

    Exceptions
    Type Condition
    NullReferenceException
    ArgumentNullException

    Invalid type

    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