docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Template

    Represents a post processing template.

    Inheritance
    object
    Template
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.InferenceEngine.Tokenization.PostProcessors.Templating
    Assembly: Unity.InferenceEngine.Tokenization.dll
    Syntax
    public class Template

    Constructors

    Template(IEnumerable<Piece>)

    Initializes a new instance of the Template type from a sequence of Pieces.

    Declaration
    public Template(IEnumerable<Piece> pieces)
    Parameters
    Type Name Description
    IEnumerable<Piece> pieces

    The elements of the template.

    Exceptions
    Type Condition
    ArgumentNullException

    pieces cannot be null.

    Template(string)

    Initializes a new instance of the Template type from string representation.

    Declaration
    public Template(string repr)
    Parameters
    Type Name Description
    string repr

    The string representation of the template.

    Exceptions
    Type Condition
    ArgumentNullException

    repr is null or whitespace.

    Properties

    Pieces

    The sequence of elements.

    Declaration
    public IEnumerable<Piece> Pieces { get; }
    Property Value
    Type Description
    IEnumerable<Piece>

    Methods

    Parse(string)

    Parses the repr into a sequence of Pieces.

    Declaration
    public static IEnumerable<Piece> Parse(string repr)
    Parameters
    Type Name Description
    string repr

    The source string to parse Pieces from.

    Returns
    Type Description
    IEnumerable<Piece>

    The sequence of parsed Pieces.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    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)