docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class OutputUtility

    Utility methods for Output<T>

    Inheritance
    object
    OutputUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.InferenceEngine.Tokenization
    Assembly: Unity.InferenceEngine.Tokenization.dll
    Syntax
    public static class OutputUtility

    Methods

    AsOutput<T>(ICollection<T>, Func<T, T>)

    Creates an instance of Output<T> from the specified this.

    Declaration
    public static Output<T> AsOutput<T>(this ICollection<T> @this, Func<T, T> transform = null)
    Parameters
    Type Name Description
    ICollection<T> this

    The target storage.

    Func<T, T> transform

    The transformation method. Common usage is cloning the values.

    Returns
    Type Description
    Output<T>

    An Output<T> wrapper.

    Type Parameters
    Name Description
    T

    The type of the values to add.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)