Struct TMP_XmlTagStack<T>
docs.unity3d.com
    Show / Hide Table of Contents

    Struct TMP_XmlTagStack<T>

    Structure used to track XML tags of various types.

    Namespace: TMPro
    Syntax
    public struct TMP_XmlTagStack<T>
    Type Parameters
    Name Description
    T

    Constructors

    TMP_XmlTagStack(T[])

    Constructor to create a new item stack.

    Declaration
    public TMP_XmlTagStack(T[] tagStack)
    Parameters
    Type Name Description
    T[] tagStack

    Fields

    index

    Declaration
    public int index
    Field Value
    Type Description
    Int32

    itemStack

    Declaration
    public T[] itemStack
    Field Value
    Type Description
    T[]

    Methods

    Add(T)

    Function to add a new item to the stack.

    Declaration
    public void Add(T item)
    Parameters
    Type Name Description
    T item

    Clear()

    Function to clear and reset stack to first item.

    Declaration
    public void Clear()

    CurrentItem()

    Declaration
    public T CurrentItem()
    Returns
    Type Description
    T

    Pop()

    Declaration
    public T Pop()
    Returns
    Type Description
    T

    PreviousItem()

    Function to retrieve the previous item without affecting the stack.

    Declaration
    public T PreviousItem()
    Returns
    Type Description
    T

    Push(T)

    Declaration
    public void Push(T item)
    Parameters
    Type Name Description
    T item

    Remove()

    Function to retrieve an item from the stack.

    Declaration
    public T Remove()
    Returns
    Type Description
    T

    SetDefault(T)

    Function to set the first item on the stack and reset index.

    Declaration
    public void SetDefault(T item)
    Parameters
    Type Name Description
    T item
    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