docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct EncodedToken

    Represents a single encoded token (start index + packed metadata)

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.TextMateLib
    Assembly: Unity.AppUI.TextMateLib.dll
    Syntax
    public readonly struct EncodedToken

    Fields

    Metadata

    Bit-packed metadata (font style, foreground/background color IDs)

    Declaration
    public readonly uint Metadata
    Field Value
    Type Description
    uint

    StartIndex

    Start offset in UTF-16 code units

    Declaration
    public readonly int StartIndex
    Field Value
    Type Description
    int

    Properties

    BackgroundId

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

    Declaration
    public int BackgroundId { get; }
    Property Value
    Type Description
    int

    FontStyle

    Gets the font style flags

    Declaration
    public int FontStyle { get; }
    Property Value
    Type Description
    int

    ForegroundId

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

    Declaration
    public int ForegroundId { get; }
    Property Value
    Type Description
    int
    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)