docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EncodedTokenAttributes

    Helpers for decoding encoded token metadata (bit-packed uint32)

    Inheritance
    object
    EncodedTokenAttributes
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.TextMateLib
    Assembly: Unity.AppUI.TextMateLib.dll
    Syntax
    public static class EncodedTokenAttributes

    Methods

    GetBackground(uint)

    Gets the background color ID (index into the color map)

    Declaration
    public static int GetBackground(uint metadata)
    Parameters
    Type Name Description
    uint metadata

    The bit-packed token metadata.

    Returns
    Type Description
    int

    The background color ID (index into the color map).

    GetFontStyle(uint)

    Gets the font style flags from encoded metadata

    Declaration
    public static int GetFontStyle(uint metadata)
    Parameters
    Type Name Description
    uint metadata

    The bit-packed token metadata.

    Returns
    Type Description
    int

    The font style flag bits.

    GetForeground(uint)

    Gets the foreground color ID (index into the color map)

    Declaration
    public static int GetForeground(uint metadata)
    Parameters
    Type Name Description
    uint metadata

    The bit-packed token metadata.

    Returns
    Type Description
    int

    The foreground color ID (index into the color map).

    In This Article
    Back to top
    Copyright © 2026 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)