Structure used to track XML tags of various types.
Namespace: TMPro
public struct TMP_XmlTagStack<T>
Type Parameters
Constructors
Constructor to create a new item stack.
Declaration
public TMP_XmlTagStack(T[] tagStack)
Parameters
Type |
Name |
Description |
T[] |
tagStack |
|
Fields
Declaration
Field Value
Declaration
Field Value
Methods
Function to add a new item to the stack.
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Function to clear and reset stack to first item.
Declaration
Declaration
Returns
Declaration
Returns
Function to retrieve the previous item without affecting the stack.
Declaration
Returns
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Function to retrieve an item from the stack.
Declaration
Returns
Function to set the first item on the stack and reset index.
Declaration
public void SetDefault(T item)
Parameters
Type |
Name |
Description |
T |
item |
|