docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum TextSize

    Sizing values for Text UI element.

    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public enum TextSize
    Remarks

    The scale keeps the 2.3 member names (XS to XXXL) and mirrors the App UI design-system registry's textVariants size vocabulary (xs, sm, base, lg, xl, 2xl, 3xl): M is the registry's base. Every step resolves to an --appui-font-sizes-* token, so the rendered size follows the density in effect.

    Fields

    Name Description
    L

    Large — --appui-font-sizes-400.

    M

    The default body size — --appui-font-sizes-200.

    S

    Small — --appui-font-sizes-100.

    XL

    Extra-large — --appui-font-sizes-500.

    XS

    Extra-small — --appui-font-sizes-75.

    XXL

    Double extra-large — --appui-font-sizes-700.

    XXXL

    Triple extra-large — --appui-font-sizes-900.

    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)