docs.unity3d.com
  • Manual
  • Scripting API
  • Changelog
  • License
    Show / Hide Table of Contents
    • TMPro
      • _Horizontal​Alignment​Options
      • _Vertical​Alignment​Options
      • Atlas​Population​Mode
      • Caret​Info
      • Caret​Position
      • Color​Mode
      • Compute_Distance​Transform_Event​Types
      • Compute_DT_Event​Args
      • Extents
      • Face​Info_Legacy
      • Fast​Action
      • Fast​Action<A, B, C>
      • Fast​Action<A, B>
      • Fast​Action<A>
      • Font​Asset​Creation​Settings
      • Font​Feature​Lookup​Flags
      • Font​Styles
      • Font​Weight
      • Glyph​Pair​Key
      • Glyph​Value​Record_Legacy
      • IText​Element
      • Kerning​Pair
      • Kerning​Pair​Key
      • Kerning​Table
      • Masking​Offset​Mode
      • Masking​Types
      • Material​Reference
      • Material​Reference​Manager
      • Mesh_Extents
      • Rich​Text​Tag​Attribute
      • Shader​Utilities
      • Sorting​Layer​Helper
      • Tag​Attribute
      • Tag​Unit​Type
      • Tag​Value​Type
      • Text​Alignment​Options
      • Text​Container
      • Text​Container​Anchors
      • Text​Element​Type
      • Text​Mesh​Pro
      • Text​Mesh​Pro​UGUI
      • Text​Overflow​Modes
      • Text​Render​Flags
      • Texture​Mapping​Options
      • TMP_Asset
      • TMP_Character
      • TMP_Character​Info
      • TMP_Color​Gradient
      • TMP_Default​Controls
      • TMP_Default​Controls.​Resources
      • TMP_Dropdown
      • TMP_Dropdown.​Dropdown​Event
      • TMP_Dropdown.​Dropdown​Item
      • TMP_Dropdown.​Option​Data
      • TMP_Dropdown.​Option​Data​List
      • TMP_Font​Asset
      • TMP_Font​Asset_Creation​Menu
      • TMP_Font​Asset​Utilities
      • TMP_Font​Feature​Table
      • TMP_Font​Style​Stack
      • TMP_Font​Utilities
      • TMP_Font​Weight​Pair
      • TMP_Glyph
      • TMP_Glyph​Adjustment​Record
      • TMP_Glyph​Pair​Adjustment​Record
      • TMP_Glyph​Value​Record
      • TMP_Input​Field
      • TMP_Input​Field.​Character​Validation
      • TMP_Input​Field.​Content​Type
      • TMP_Input​Field.​Edit​State
      • TMP_Input​Field.​Input​Type
      • TMP_Input​Field.​Line​Type
      • TMP_Input​Field.​On​Change​Event
      • TMP_Input​Field.​On​Validate​Input
      • TMP_Input​Field.​Selection​Event
      • TMP_Input​Field.​Submit​Event
      • TMP_Input​Field.​Text​Selection​Event
      • TMP_Input​Field.​Touch​Screen​Keyboard​Event
      • TMP_Input​Validator
      • TMP_Line​Info
      • TMP_Link​Info
      • TMP_Material​Manager
      • TMP_Math
      • TMP_Mesh​Info
      • TMP_Package​Utilities
      • TMP_Page​Info
      • TMP_Post​Build​Process​Handler
      • TMP_Project​Conversion​Utility
      • TMP_Project​Text​Settings
      • TMP_Rich​Text​Tag​Stack<T>
      • TMP_Scrollbar​Event​Handler
      • TMP_Selection​Caret
      • TMP_Settings
      • TMP_Settings.​Line​Breaking​Table
      • TMP_Sprite
      • TMP_Sprite​Animator
      • TMP_Sprite​Asset
      • TMP_Sprite​Asset​Importer
      • TMP_Sprite​Character
      • TMP_Sprite​Glyph
      • TMP_Sprite​Info
      • TMP_Style
      • TMP_Style​Sheet
      • TMP_Sub​Mesh
      • TMP_Sub​Mesh​UI
      • TMP_Text
      • TMP_Text.​Unicode​Char
      • TMP_Text​Element
      • TMP_Text​Element_Legacy
      • TMP_Text​Element​Type
      • TMP_Text​Info
      • TMP_Text​Parsing​Utilities
      • TMP_Text​Utilities
      • TMP_Update​Manager
      • TMP_Update​Registry
      • TMP_Vertex
      • TMP_Vertex​Data​Update​Flags
      • TMP_Word​Info
      • TMPro_Event​Manager
      • TMPro_Extension​Methods
      • Vertex​Gradient
      • Vertex​Sorting​Order
      • Word​Wrap​State
    • TMPro.​Editor​Utilities
      • Dropdown​Editor
      • Editor​Shader​Utilities
      • Font​Weight​Drawer
      • Glyph​Metrics​Property​Drawer
      • Glyph​Rect​Property​Drawer
      • Style​Drawer
      • TMP_Base​Editor​Panel
      • TMP_Base​Editor​Panel.​Foldout
      • TMP_Base​Shader​GUI
      • TMP_Base​Shader​GUI.​Shader​Feature
      • TMP_Bitmap​Shader​GUI
      • TMP_Character​Property​Drawer
      • TMP_Color​Gradient​Asset​Menu
      • TMP_Color​Gradient​Editor
      • TMP_Context​Menus
      • TMP_Editor​Coroutine
      • TMP_Editor​Panel
      • TMP_Editor​Utility
      • TMP_Font​Asset​Editor
      • TMP_Glyph​Pair​Adjustment​Record​Property​Drawer
      • TMP_Glyph​Property​Drawer
      • TMP_Input​Field​Editor
      • TMP_SDFShader​GUI
      • TMP_Settings​Editor
      • TMP_Sprite​Asset​Editor
      • TMP_Sprite​Asset​Menu
      • TMP_Sprite​Character​Property​Drawer
      • TMP_Sprite​Glyph​Property​Drawer
      • TMP_Style​Asset​Menu
      • TMP_Style​Editor
      • TMP_Sub​Mesh_Editor
      • TMP_Sub​Mesh​UI_Editor
      • TMP_Text​Alignment​Drawer
      • TMP_Ui​Editor​Panel
      • TMP_UIStyle​Manager
      • TMPro_Create​Object​Menu
      • TMPro_Font​Asset​Creator​Window
      • TMPro_Text​Container​Editor
      • TMPro_Texture​Post​Processor
    • TMPro.​Sprite​Asset​Utilities
      • Sprite​Asset​Import​Formats
      • Texture​Packer
      • Texture​Packer.​Sprite​Data
      • Texture​Packer.​Sprite​Data​Object
      • Texture​Packer.​Sprite​Frame
      • Texture​Packer.​Sprite​Size
    • Scripting API
    • TMPro
    • Text​Alignment​Options

    Enum TextAlignmentOptions

    Namespace: TMPro
    Syntax
    public enum TextAlignmentOptions

    Fields

    Name Description Value
    TopLeft 257
    Top 258
    TopRight 260
    TopJustified 264
    TopFlush 272
    TopGeoAligned 288
    Left 513
    Center 514
    Right 516
    Justified 520
    Flush 528
    CenterGeoAligned 544
    BottomLeft 1025
    Bottom 1026
    BottomRight 1028
    BottomJustified 1032
    BottomFlush 1040
    BottomGeoAligned 1056
    BaselineLeft 2049
    Baseline 2050
    BaselineRight 2052
    BaselineJustified 2056
    BaselineFlush 2064
    BaselineGeoAligned 2080
    MidlineLeft 4097
    Midline 4098
    MidlineRight 4100
    MidlineJustified 4104
    MidlineFlush 4112
    MidlineGeoAligned 4128
    CaplineLeft 8193
    Capline 8194
    CaplineRight 8196
    CaplineJustified 8200
    CaplineFlush 8208
    CaplineGeoAligned 8224
    In This Article
    • Fields
    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