docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_Text

    Base class which contains common properties and functions shared between the TextMeshPro and TextMeshProUGUI component.

    Inheritance
    System.Object
    UnityEngine.EventSystems.UIBehaviour
    UnityEngine.UI.Graphic
    UnityEngine.UI.MaskableGraphic
    TMP_Text
    TextMeshPro
    TextMeshProUGUI
    Inherited Members
    UnityEngine.UI.MaskableGraphic.m_ShouldRecalculateStencil
    UnityEngine.UI.MaskableGraphic.m_MaskMaterial
    UnityEngine.UI.MaskableGraphic.m_StencilValue
    UnityEngine.UI.MaskableGraphic.GetModifiedMaterial(UnityEngine.Material)
    UnityEngine.UI.MaskableGraphic.Cull(UnityEngine.Rect, System.Boolean)
    UnityEngine.UI.MaskableGraphic.SetClipRect(UnityEngine.Rect, System.Boolean)
    UnityEngine.UI.MaskableGraphic.SetClipSoftness(UnityEngine.Vector2)
    UnityEngine.UI.MaskableGraphic.OnEnable()
    UnityEngine.UI.MaskableGraphic.OnDisable()
    UnityEngine.UI.MaskableGraphic.OnValidate()
    UnityEngine.UI.MaskableGraphic.OnTransformParentChanged()
    UnityEngine.UI.MaskableGraphic.OnCanvasHierarchyChanged()
    UnityEngine.UI.MaskableGraphic.RecalculateClipping()
    UnityEngine.UI.MaskableGraphic.RecalculateMasking()
    UnityEngine.UI.MaskableGraphic.UnityEngine.UI.IClippable.get_gameObject()
    UnityEngine.UI.MaskableGraphic.onCullStateChanged
    UnityEngine.UI.MaskableGraphic.maskable
    UnityEngine.UI.MaskableGraphic.isMaskingGraphic
    UnityEngine.UI.Graphic.s_DefaultUI
    UnityEngine.UI.Graphic.s_WhiteTexture
    UnityEngine.UI.Graphic.m_Material
    UnityEngine.UI.Graphic.m_SkipLayoutUpdate
    UnityEngine.UI.Graphic.m_SkipMaterialUpdate
    UnityEngine.UI.Graphic.m_OnDirtyLayoutCallback
    UnityEngine.UI.Graphic.m_OnDirtyVertsCallback
    UnityEngine.UI.Graphic.m_OnDirtyMaterialCallback
    UnityEngine.UI.Graphic.s_Mesh
    UnityEngine.UI.Graphic.m_CachedMesh
    UnityEngine.UI.Graphic.m_CachedUvs
    UnityEngine.UI.Graphic.SetAllDirty()
    UnityEngine.UI.Graphic.SetLayoutDirty()
    UnityEngine.UI.Graphic.SetVerticesDirty()
    UnityEngine.UI.Graphic.SetMaterialDirty()
    UnityEngine.UI.Graphic.SetRaycastDirty()
    UnityEngine.UI.Graphic.OnRectTransformDimensionsChange()
    UnityEngine.UI.Graphic.OnBeforeTransformParentChanged()
    UnityEngine.UI.Graphic.OnDestroy()
    UnityEngine.UI.Graphic.OnCullingChanged()
    UnityEngine.UI.Graphic.Rebuild(UnityEngine.UI.CanvasUpdate)
    UnityEngine.UI.Graphic.LayoutComplete()
    UnityEngine.UI.Graphic.GraphicUpdateComplete()
    UnityEngine.UI.Graphic.UpdateMaterial()
    UnityEngine.UI.Graphic.UpdateGeometry()
    UnityEngine.UI.Graphic.OnPopulateMesh(UnityEngine.Mesh)
    UnityEngine.UI.Graphic.OnPopulateMesh(UnityEngine.UI.VertexHelper)
    UnityEngine.UI.Graphic.OnRebuildRequested()
    UnityEngine.UI.Graphic.Reset()
    UnityEngine.UI.Graphic.OnDidApplyAnimationProperties()
    UnityEngine.UI.Graphic.SetNativeSize()
    UnityEngine.UI.Graphic.Raycast(UnityEngine.Vector2, UnityEngine.Camera)
    UnityEngine.UI.Graphic.PixelAdjustPoint(UnityEngine.Vector2)
    UnityEngine.UI.Graphic.GetPixelAdjustedRect()
    UnityEngine.UI.Graphic.CrossFadeColor(UnityEngine.Color, System.Single, System.Boolean, System.Boolean, System.Boolean)
    UnityEngine.UI.Graphic.RegisterDirtyLayoutCallback(UnityEngine.Events.UnityAction)
    UnityEngine.UI.Graphic.UnregisterDirtyLayoutCallback(UnityEngine.Events.UnityAction)
    UnityEngine.UI.Graphic.RegisterDirtyVerticesCallback(UnityEngine.Events.UnityAction)
    UnityEngine.UI.Graphic.UnregisterDirtyVerticesCallback(UnityEngine.Events.UnityAction)
    UnityEngine.UI.Graphic.RegisterDirtyMaterialCallback(UnityEngine.Events.UnityAction)
    UnityEngine.UI.Graphic.UnregisterDirtyMaterialCallback(UnityEngine.Events.UnityAction)
    UnityEngine.UI.Graphic.UnityEngine.UI.ICanvasElement.get_transform()
    UnityEngine.UI.Graphic.defaultGraphicMaterial
    UnityEngine.UI.Graphic.raycastTarget
    UnityEngine.UI.Graphic.raycastPadding
    UnityEngine.UI.Graphic.useLegacyMeshGeneration
    UnityEngine.UI.Graphic.depth
    UnityEngine.UI.Graphic.canvas
    UnityEngine.UI.Graphic.canvasRenderer
    UnityEngine.UI.Graphic.defaultMaterial
    UnityEngine.UI.Graphic.material
    UnityEngine.UI.Graphic.materialForRendering
    UnityEngine.UI.Graphic.mainTexture
    UnityEngine.UI.Graphic.workerMesh
    UnityEngine.EventSystems.UIBehaviour.Awake()
    UnityEngine.EventSystems.UIBehaviour.Start()
    UnityEngine.EventSystems.UIBehaviour.IsActive()
    UnityEngine.EventSystems.UIBehaviour.OnCanvasGroupChanged()
    UnityEngine.EventSystems.UIBehaviour.IsDestroyed()
    Namespace: TMPro
    Syntax
    public class TMP_Text : MaskableGraphic, ICanvasElement, IClippable, IMaskable, IMaterialModifier

    Fields

    checkPaddingRequired

    Declaration
    [SerializeField]
    protected bool checkPaddingRequired
    Field Value
    Type Description
    System.Boolean

    k_LargeNegativeFloat

    Declaration
    protected static float k_LargeNegativeFloat
    Field Value
    Type Description
    System.Single

    k_LargeNegativeInt

    Declaration
    protected static int k_LargeNegativeInt
    Field Value
    Type Description
    System.Int32

    k_LargeNegativeVector2

    Declaration
    protected static Vector2 k_LargeNegativeVector2
    Field Value
    Type Description
    Vector2

    k_LargePositiveFloat

    Declaration
    protected static float k_LargePositiveFloat
    Field Value
    Type Description
    System.Single

    k_LargePositiveInt

    Declaration
    protected static int k_LargePositiveInt
    Field Value
    Type Description
    System.Int32

    k_LargePositiveVector2

    Declaration
    protected static Vector2 k_LargePositiveVector2
    Field Value
    Type Description
    Vector2

    m_actionStack

    Declaration
    protected TMP_XmlTagStack<int> m_actionStack
    Field Value
    Type Description
    TMP_XmlTagStack<System.Int32>

    m_attributeParameterValues

    Declaration
    protected float[] m_attributeParameterValues
    Field Value
    Type Description
    System.Single[]

    m_autoSizeTextContainer

    Declaration
    protected bool m_autoSizeTextContainer
    Field Value
    Type Description
    System.Boolean

    m_baselineOffset

    Declaration
    protected float m_baselineOffset
    Field Value
    Type Description
    System.Single

    m_baselineOffsetStack

    Declaration
    protected TMP_XmlTagStack<float> m_baselineOffsetStack
    Field Value
    Type Description
    TMP_XmlTagStack<System.Single>

    m_cached_Ellipsis_GlyphInfo

    Declaration
    protected TMP_Glyph m_cached_Ellipsis_GlyphInfo
    Field Value
    Type Description
    TMP_Glyph

    m_cached_TextElement

    Declaration
    protected TMP_TextElement m_cached_TextElement
    Field Value
    Type Description
    TMP_TextElement

    m_cached_Underline_GlyphInfo

    Declaration
    protected TMP_Glyph m_cached_Underline_GlyphInfo
    Field Value
    Type Description
    TMP_Glyph

    m_char_buffer

    Declaration
    protected int[] m_char_buffer
    Field Value
    Type Description
    System.Int32[]

    m_characterCount

    Declaration
    protected int m_characterCount
    Field Value
    Type Description
    System.Int32

    m_characterSpacing

    Declaration
    [SerializeField]
    protected float m_characterSpacing
    Field Value
    Type Description
    System.Single

    m_charWidthAdjDelta

    Declaration
    protected float m_charWidthAdjDelta
    Field Value
    Type Description
    System.Single

    m_charWidthMaxAdj

    Declaration
    [SerializeField]
    protected float m_charWidthMaxAdj
    Field Value
    Type Description
    System.Single

    m_colorGradientPreset

    Declaration
    protected TMP_ColorGradient m_colorGradientPreset
    Field Value
    Type Description
    TMP_ColorGradient

    m_colorGradientStack

    Declaration
    protected TMP_XmlTagStack<TMP_ColorGradient> m_colorGradientStack
    Field Value
    Type Description
    TMP_XmlTagStack<TMP_ColorGradient>

    m_colorStack

    Declaration
    protected TMP_XmlTagStack<Color32> m_colorStack
    Field Value
    Type Description
    TMP_XmlTagStack<Color32>

    m_cSpacing

    Declaration
    protected float m_cSpacing
    Field Value
    Type Description
    System.Single

    m_currentFontAsset

    Declaration
    protected TMP_FontAsset m_currentFontAsset
    Field Value
    Type Description
    TMP_FontAsset

    m_currentFontSize

    Declaration
    protected float m_currentFontSize
    Field Value
    Type Description
    System.Single

    m_currentMaterial

    Declaration
    protected Material m_currentMaterial
    Field Value
    Type Description
    Material

    m_currentMaterialIndex

    Declaration
    protected int m_currentMaterialIndex
    Field Value
    Type Description
    System.Int32

    m_currentSpriteAsset

    Declaration
    protected TMP_SpriteAsset m_currentSpriteAsset
    Field Value
    Type Description
    TMP_SpriteAsset

    m_defaultSpriteAsset

    Declaration
    protected TMP_SpriteAsset m_defaultSpriteAsset
    Field Value
    Type Description
    TMP_SpriteAsset

    m_enableAutoSizing

    Declaration
    [SerializeField]
    protected bool m_enableAutoSizing
    Field Value
    Type Description
    System.Boolean

    m_enableExtraPadding

    Declaration
    [SerializeField]
    protected bool m_enableExtraPadding
    Field Value
    Type Description
    System.Boolean

    m_enableKerning

    Declaration
    [SerializeField]
    protected bool m_enableKerning
    Field Value
    Type Description
    System.Boolean

    m_enableVertexGradient

    Declaration
    [SerializeField]
    protected bool m_enableVertexGradient
    Field Value
    Type Description
    System.Boolean

    m_enableWordWrapping

    Declaration
    [SerializeField]
    protected bool m_enableWordWrapping
    Field Value
    Type Description
    System.Boolean

    m_faceColor

    Declaration
    [SerializeField]
    protected Color32 m_faceColor
    Field Value
    Type Description
    Color32

    m_firstCharacterOfLine

    Declaration
    protected int m_firstCharacterOfLine
    Field Value
    Type Description
    System.Int32

    m_firstOverflowCharacterIndex

    Declaration
    [SerializeField]
    protected int m_firstOverflowCharacterIndex
    Field Value
    Type Description
    System.Int32

    m_firstVisibleCharacter

    Declaration
    [SerializeField]
    protected int m_firstVisibleCharacter
    Field Value
    Type Description
    System.Int32

    m_firstVisibleCharacterOfLine

    Declaration
    protected int m_firstVisibleCharacterOfLine
    Field Value
    Type Description
    System.Int32

    m_flexibleHeight

    Declaration
    protected float m_flexibleHeight
    Field Value
    Type Description
    System.Single

    m_flexibleWidth

    Declaration
    protected float m_flexibleWidth
    Field Value
    Type Description
    System.Single

    m_fontAsset

    Declaration
    [SerializeField]
    protected TMP_FontAsset m_fontAsset
    Field Value
    Type Description
    TMP_FontAsset

    m_fontColor

    Declaration
    [SerializeField]
    protected Color m_fontColor
    Field Value
    Type Description
    Color

    m_fontColor32

    Declaration
    [SerializeField]
    protected Color32 m_fontColor32
    Field Value
    Type Description
    Color32

    m_fontColorGradient

    Declaration
    [SerializeField]
    protected VertexGradient m_fontColorGradient
    Field Value
    Type Description
    VertexGradient

    m_fontColorGradientPreset

    Declaration
    [SerializeField]
    protected TMP_ColorGradient m_fontColorGradientPreset
    Field Value
    Type Description
    TMP_ColorGradient

    m_fontMaterial

    Declaration
    [SerializeField]
    protected Material m_fontMaterial
    Field Value
    Type Description
    Material

    m_fontMaterials

    Declaration
    [SerializeField]
    protected Material[] m_fontMaterials
    Field Value
    Type Description
    Material[]

    m_fontScale

    Declaration
    protected float m_fontScale
    Field Value
    Type Description
    System.Single

    m_fontScaleMultiplier

    Declaration
    protected float m_fontScaleMultiplier
    Field Value
    Type Description
    System.Single

    m_fontSharedMaterials

    Declaration
    [SerializeField]
    protected Material[] m_fontSharedMaterials
    Field Value
    Type Description
    Material[]

    m_fontSize

    Declaration
    [SerializeField]
    protected float m_fontSize
    Field Value
    Type Description
    System.Single

    m_fontSizeBase

    Declaration
    [SerializeField]
    protected float m_fontSizeBase
    Field Value
    Type Description
    System.Single

    m_fontSizeMax

    Declaration
    [SerializeField]
    protected float m_fontSizeMax
    Field Value
    Type Description
    System.Single

    m_fontSizeMin

    Declaration
    [SerializeField]
    protected float m_fontSizeMin
    Field Value
    Type Description
    System.Single

    m_fontStyle

    Declaration
    [SerializeField]
    protected FontStyles m_fontStyle
    Field Value
    Type Description
    FontStyles

    m_fontStyleStack

    Declaration
    protected TMP_BasicXmlTagStack m_fontStyleStack
    Field Value
    Type Description
    TMP_BasicXmlTagStack

    m_fontWeight

    Declaration
    [SerializeField]
    protected int m_fontWeight
    Field Value
    Type Description
    System.Int32

    m_fontWeightInternal

    Declaration
    protected int m_fontWeightInternal
    Field Value
    Type Description
    System.Int32

    m_fontWeightStack

    Declaration
    protected TMP_XmlTagStack<int> m_fontWeightStack
    Field Value
    Type Description
    TMP_XmlTagStack<System.Int32>

    m_FXMatrix

    Declaration
    protected Matrix4x4 m_FXMatrix
    Field Value
    Type Description
    Matrix4x4

    m_geometrySortingOrder

    Declaration
    [SerializeField]
    protected VertexSortingOrder m_geometrySortingOrder
    Field Value
    Type Description
    VertexSortingOrder

    m_havePropertiesChanged

    Declaration
    [SerializeField]
    protected bool m_havePropertiesChanged
    Field Value
    Type Description
    System.Boolean

    m_highlightColor

    Declaration
    protected Color32 m_highlightColor
    Field Value
    Type Description
    Color32

    m_highlightColorStack

    Declaration
    protected TMP_XmlTagStack<Color32> m_highlightColorStack
    Field Value
    Type Description
    TMP_XmlTagStack<Color32>

    m_horizontalMapping

    Declaration
    [SerializeField]
    protected TextureMappingOptions m_horizontalMapping
    Field Value
    Type Description
    TextureMappingOptions

    m_htmlColor

    Declaration
    protected Color32 m_htmlColor
    Field Value
    Type Description
    Color32

    m_htmlTag

    Declaration
    protected char[] m_htmlTag
    Field Value
    Type Description
    System.Char[]

    m_ignoreActiveState

    Declaration
    protected bool m_ignoreActiveState
    Field Value
    Type Description
    System.Boolean

    m_ignoreCulling

    Declaration
    [SerializeField]
    protected bool m_ignoreCulling
    Field Value
    Type Description
    System.Boolean

    m_ignoreRectMaskCulling

    Declaration
    [SerializeField]
    protected bool m_ignoreRectMaskCulling
    Field Value
    Type Description
    System.Boolean

    m_indentStack

    Declaration
    protected TMP_XmlTagStack<float> m_indentStack
    Field Value
    Type Description
    TMP_XmlTagStack<System.Single>

    m_input_CharArray

    Declaration
    protected char[] m_input_CharArray
    Field Value
    Type Description
    System.Char[]

    m_inputSource

    Declaration
    [SerializeField]
    protected TMP_Text.TextInputSources m_inputSource
    Field Value
    Type Description
    TMP_Text.TextInputSources

    m_isAlignmentEnumConverted

    Declaration
    [SerializeField]
    protected bool m_isAlignmentEnumConverted
    Field Value
    Type Description
    System.Boolean

    m_isAwake

    Declaration
    protected bool m_isAwake
    Field Value
    Type Description
    System.Boolean

    m_isCalculateSizeRequired

    Declaration
    protected bool m_isCalculateSizeRequired
    Field Value
    Type Description
    System.Boolean

    m_isCalculatingPreferredValues

    Declaration
    protected bool m_isCalculatingPreferredValues
    Field Value
    Type Description
    System.Boolean

    m_isCharacterWrappingEnabled

    Declaration
    protected bool m_isCharacterWrappingEnabled
    Field Value
    Type Description
    System.Boolean

    m_isCullingEnabled

    Declaration
    [SerializeField]
    protected bool m_isCullingEnabled
    Field Value
    Type Description
    System.Boolean

    m_isFXMatrixSet

    Declaration
    protected bool m_isFXMatrixSet
    Field Value
    Type Description
    System.Boolean

    m_isIgnoringAlignment

    Declaration
    protected bool m_isIgnoringAlignment
    Field Value
    Type Description
    System.Boolean

    m_isInputParsingRequired

    Declaration
    [SerializeField]
    protected bool m_isInputParsingRequired
    Field Value
    Type Description
    System.Boolean

    m_isLayoutDirty

    Declaration
    protected bool m_isLayoutDirty
    Field Value
    Type Description
    System.Boolean

    m_isLinkedTextComponent

    Declaration
    [SerializeField]
    protected bool m_isLinkedTextComponent
    Field Value
    Type Description
    System.Boolean

    m_isMaterialDirty

    Declaration
    protected bool m_isMaterialDirty
    Field Value
    Type Description
    System.Boolean

    m_isNewPage

    Declaration
    protected bool m_isNewPage
    Field Value
    Type Description
    System.Boolean

    m_isNonBreakingSpace

    Declaration
    protected bool m_isNonBreakingSpace
    Field Value
    Type Description
    System.Boolean

    m_isOrthographic

    Declaration
    [SerializeField]
    protected bool m_isOrthographic
    Field Value
    Type Description
    System.Boolean

    m_isOverlay

    Declaration
    protected bool m_isOverlay
    Field Value
    Type Description
    System.Boolean

    m_isParsingText

    Declaration
    protected bool m_isParsingText
    Field Value
    Type Description
    System.Boolean

    m_isPreferredHeightDirty

    Declaration
    protected bool m_isPreferredHeightDirty
    Field Value
    Type Description
    System.Boolean

    m_isPreferredWidthDirty

    Declaration
    protected bool m_isPreferredWidthDirty
    Field Value
    Type Description
    System.Boolean

    m_isRichText

    Declaration
    [SerializeField]
    protected bool m_isRichText
    Field Value
    Type Description
    System.Boolean

    m_isRightToLeft

    Declaration
    [SerializeField]
    protected bool m_isRightToLeft
    Field Value
    Type Description
    System.Boolean

    m_isSDFShader

    Declaration
    protected bool m_isSDFShader
    Field Value
    Type Description
    System.Boolean

    m_isTextTruncated

    Declaration
    protected bool m_isTextTruncated
    Field Value
    Type Description
    System.Boolean

    m_isUsingBold

    Declaration
    protected bool m_isUsingBold
    Field Value
    Type Description
    System.Boolean

    m_isUsingLegacyAnimationComponent

    Declaration
    [SerializeField]
    protected bool m_isUsingLegacyAnimationComponent
    Field Value
    Type Description
    System.Boolean

    m_isVolumetricText

    Declaration
    [SerializeField]
    protected bool m_isVolumetricText
    Field Value
    Type Description
    System.Boolean

    m_isWaitingOnResourceLoad

    Declaration
    protected bool m_isWaitingOnResourceLoad
    Field Value
    Type Description
    System.Boolean

    m_lastCharacterOfLine

    Declaration
    protected int m_lastCharacterOfLine
    Field Value
    Type Description
    System.Int32

    m_lastVisibleCharacterOfLine

    Declaration
    protected int m_lastVisibleCharacterOfLine
    Field Value
    Type Description
    System.Int32

    m_layoutAlreadyDirty

    Declaration
    protected bool m_layoutAlreadyDirty
    Field Value
    Type Description
    System.Boolean

    m_LayoutElement

    Declaration
    protected LayoutElement m_LayoutElement
    Field Value
    Type Description
    UnityEngine.UI.LayoutElement

    m_layoutPriority

    Declaration
    protected int m_layoutPriority
    Field Value
    Type Description
    System.Int32

    m_lineHeight

    Declaration
    protected float m_lineHeight
    Field Value
    Type Description
    System.Single

    m_lineJustification

    Declaration
    protected TextAlignmentOptions m_lineJustification
    Field Value
    Type Description
    TextAlignmentOptions

    m_lineJustificationStack

    Declaration
    protected TMP_XmlTagStack<TextAlignmentOptions> m_lineJustificationStack
    Field Value
    Type Description
    TMP_XmlTagStack<TextAlignmentOptions>

    m_lineNumber

    Declaration
    protected int m_lineNumber
    Field Value
    Type Description
    System.Int32

    m_lineOffset

    Declaration
    protected float m_lineOffset
    Field Value
    Type Description
    System.Single

    m_lineSpacing

    Declaration
    [SerializeField]
    protected float m_lineSpacing
    Field Value
    Type Description
    System.Single

    m_lineSpacingDelta

    Declaration
    protected float m_lineSpacingDelta
    Field Value
    Type Description
    System.Single

    m_lineSpacingMax

    Declaration
    [SerializeField]
    protected float m_lineSpacingMax
    Field Value
    Type Description
    System.Single

    m_lineVisibleCharacterCount

    Declaration
    protected int m_lineVisibleCharacterCount
    Field Value
    Type Description
    System.Int32

    m_linkedTextComponent

    Declaration
    [SerializeField]
    protected TMP_Text m_linkedTextComponent
    Field Value
    Type Description
    TMP_Text

    m_margin

    Declaration
    [SerializeField]
    protected Vector4 m_margin
    Field Value
    Type Description
    Vector4

    m_marginHeight

    Declaration
    protected float m_marginHeight
    Field Value
    Type Description
    System.Single

    m_marginLeft

    Declaration
    protected float m_marginLeft
    Field Value
    Type Description
    System.Single

    m_marginRight

    Declaration
    protected float m_marginRight
    Field Value
    Type Description
    System.Single

    m_marginWidth

    Declaration
    protected float m_marginWidth
    Field Value
    Type Description
    System.Single

    m_materialReferenceIndexLookup

    Declaration
    protected Dictionary<int, int> m_materialReferenceIndexLookup
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.Int32, System.Int32>

    m_materialReferences

    Declaration
    protected MaterialReference[] m_materialReferences
    Field Value
    Type Description
    MaterialReference[]

    m_materialReferenceStack

    Declaration
    protected TMP_XmlTagStack<MaterialReference> m_materialReferenceStack
    Field Value
    Type Description
    TMP_XmlTagStack<MaterialReference>

    m_maxAscender

    Declaration
    protected float m_maxAscender
    Field Value
    Type Description
    System.Single

    m_maxCapHeight

    Declaration
    protected float m_maxCapHeight
    Field Value
    Type Description
    System.Single

    m_maxDescender

    Declaration
    protected float m_maxDescender
    Field Value
    Type Description
    System.Single

    m_maxFontSize

    Declaration
    protected float m_maxFontSize
    Field Value
    Type Description
    System.Single

    m_maxHeight

    Declaration
    protected float m_maxHeight
    Field Value
    Type Description
    System.Single

    m_maxLineAscender

    Declaration
    protected float m_maxLineAscender
    Field Value
    Type Description
    System.Single

    m_maxLineDescender

    Declaration
    protected float m_maxLineDescender
    Field Value
    Type Description
    System.Single

    m_maxVisibleCharacters

    Declaration
    protected int m_maxVisibleCharacters
    Field Value
    Type Description
    System.Int32

    m_maxVisibleLines

    Declaration
    protected int m_maxVisibleLines
    Field Value
    Type Description
    System.Int32

    m_maxVisibleWords

    Declaration
    protected int m_maxVisibleWords
    Field Value
    Type Description
    System.Int32

    m_maxWidth

    Declaration
    protected float m_maxWidth
    Field Value
    Type Description
    System.Single

    m_mesh

    Declaration
    protected Mesh m_mesh
    Field Value
    Type Description
    Mesh

    m_meshExtents

    Declaration
    protected Extents m_meshExtents
    Field Value
    Type Description
    Extents

    m_minFontSize

    Declaration
    protected float m_minFontSize
    Field Value
    Type Description
    System.Single

    m_minHeight

    Declaration
    protected float m_minHeight
    Field Value
    Type Description
    System.Single

    m_minWidth

    Declaration
    protected float m_minWidth
    Field Value
    Type Description
    System.Single

    m_monoSpacing

    Declaration
    protected float m_monoSpacing
    Field Value
    Type Description
    System.Single

    m_outlineColor

    Declaration
    [SerializeField]
    protected Color32 m_outlineColor
    Field Value
    Type Description
    Color32

    m_outlineWidth

    Declaration
    protected float m_outlineWidth
    Field Value
    Type Description
    System.Single

    m_overflowMode

    Declaration
    [SerializeField]
    protected TextOverflowModes m_overflowMode
    Field Value
    Type Description
    TextOverflowModes

    m_overrideHtmlColors

    Declaration
    [SerializeField]
    protected bool m_overrideHtmlColors
    Field Value
    Type Description
    System.Boolean

    m_padding

    Declaration
    protected float m_padding
    Field Value
    Type Description
    System.Single

    m_pageNumber

    Declaration
    protected int m_pageNumber
    Field Value
    Type Description
    System.Int32

    m_pageToDisplay

    Declaration
    [SerializeField]
    protected int m_pageToDisplay
    Field Value
    Type Description
    System.Int32

    m_paragraphSpacing

    Declaration
    [SerializeField]
    protected float m_paragraphSpacing
    Field Value
    Type Description
    System.Single

    m_parseCtrlCharacters

    Declaration
    [SerializeField]
    protected bool m_parseCtrlCharacters
    Field Value
    Type Description
    System.Boolean

    m_preferredHeight

    Declaration
    protected float m_preferredHeight
    Field Value
    Type Description
    System.Single

    m_preferredWidth

    Declaration
    protected float m_preferredWidth
    Field Value
    Type Description
    System.Single

    m_rectTransform

    Declaration
    protected RectTransform m_rectTransform
    Field Value
    Type Description
    RectTransform

    m_renderedHeight

    Declaration
    protected float m_renderedHeight
    Field Value
    Type Description
    System.Single

    m_renderedWidth

    Declaration
    protected float m_renderedWidth
    Field Value
    Type Description
    System.Single

    m_renderMode

    Declaration
    protected TextRenderFlags m_renderMode
    Field Value
    Type Description
    TextRenderFlags

    m_SavedLineState

    Declaration
    protected WordWrapState m_SavedLineState
    Field Value
    Type Description
    WordWrapState

    m_SavedWordWrapState

    Declaration
    protected WordWrapState m_SavedWordWrapState
    Field Value
    Type Description
    WordWrapState

    m_sharedMaterial

    Declaration
    [SerializeField]
    protected Material m_sharedMaterial
    Field Value
    Type Description
    Material

    m_sizeStack

    Declaration
    protected TMP_XmlTagStack<float> m_sizeStack
    Field Value
    Type Description
    TMP_XmlTagStack<System.Single>

    m_spacing

    Declaration
    protected float m_spacing
    Field Value
    Type Description
    System.Single

    m_spriteAnimationID

    Declaration
    protected int m_spriteAnimationID
    Field Value
    Type Description
    System.Int32

    m_spriteAnimator

    Declaration
    [SerializeField]
    protected TMP_SpriteAnimator m_spriteAnimator
    Field Value
    Type Description
    TMP_SpriteAnimator

    m_spriteAsset

    Declaration
    [SerializeField]
    protected TMP_SpriteAsset m_spriteAsset
    Field Value
    Type Description
    TMP_SpriteAsset

    m_spriteColor

    Declaration
    protected Color32 m_spriteColor
    Field Value
    Type Description
    Color32

    m_spriteCount

    Declaration
    protected int m_spriteCount
    Field Value
    Type Description
    System.Int32

    m_spriteIndex

    Declaration
    protected int m_spriteIndex
    Field Value
    Type Description
    System.Int32

    m_startOfLineAscender

    Declaration
    protected float m_startOfLineAscender
    Field Value
    Type Description
    System.Single

    m_strikethroughColor

    Declaration
    protected Color32 m_strikethroughColor
    Field Value
    Type Description
    Color32

    m_strikethroughColorStack

    Declaration
    protected TMP_XmlTagStack<Color32> m_strikethroughColorStack
    Field Value
    Type Description
    TMP_XmlTagStack<Color32>

    m_style

    Declaration
    protected FontStyles m_style
    Field Value
    Type Description
    FontStyles

    m_styleStack

    Declaration
    protected TMP_XmlTagStack<int> m_styleStack
    Field Value
    Type Description
    TMP_XmlTagStack<System.Int32>

    m_tabSpacing

    Declaration
    protected float m_tabSpacing
    Field Value
    Type Description
    System.Single

    m_text

    Declaration
    [SerializeField]
    protected string m_text
    Field Value
    Type Description
    System.String

    m_textAlignment

    Declaration
    [SerializeField]
    [FormerlySerializedAs("m_lineJustification")]
    protected TextAlignmentOptions m_textAlignment
    Field Value
    Type Description
    TextAlignmentOptions

    m_textContainerLocalCorners

    Declaration
    protected Vector3[] m_textContainerLocalCorners
    Field Value
    Type Description
    Vector3[]

    m_textElementType

    Declaration
    protected TMP_TextElementType m_textElementType
    Field Value
    Type Description
    TMP_TextElementType

    m_textInfo

    Declaration
    [SerializeField]
    protected TMP_TextInfo m_textInfo
    Field Value
    Type Description
    TMP_TextInfo

    m_tintAllSprites

    Declaration
    [SerializeField]
    protected bool m_tintAllSprites
    Field Value
    Type Description
    System.Boolean

    m_tintSprite

    Declaration
    protected bool m_tintSprite
    Field Value
    Type Description
    System.Boolean

    m_totalCharacterCount

    Declaration
    protected int m_totalCharacterCount
    Field Value
    Type Description
    System.Int32

    m_transform

    Declaration
    protected Transform m_transform
    Field Value
    Type Description
    Transform

    m_underlineColor

    Declaration
    protected Color32 m_underlineColor
    Field Value
    Type Description
    Color32

    m_underlineColorStack

    Declaration
    protected TMP_XmlTagStack<Color32> m_underlineColorStack
    Field Value
    Type Description
    TMP_XmlTagStack<Color32>

    m_useMaxVisibleDescender

    Declaration
    [SerializeField]
    protected bool m_useMaxVisibleDescender
    Field Value
    Type Description
    System.Boolean

    m_uvLineOffset

    Declaration
    [SerializeField]
    protected float m_uvLineOffset
    Field Value
    Type Description
    System.Single

    m_verticalMapping

    Declaration
    [SerializeField]
    protected TextureMappingOptions m_verticalMapping
    Field Value
    Type Description
    TextureMappingOptions

    m_verticesAlreadyDirty

    Declaration
    protected bool m_verticesAlreadyDirty
    Field Value
    Type Description
    System.Boolean

    m_width

    Declaration
    protected float m_width
    Field Value
    Type Description
    System.Single

    m_wordSpacing

    Declaration
    [SerializeField]
    protected float m_wordSpacing
    Field Value
    Type Description
    System.Single

    m_wordWrappingRatios

    Declaration
    [SerializeField]
    protected float m_wordWrappingRatios
    Field Value
    Type Description
    System.Single

    m_xAdvance

    Declaration
    protected float m_xAdvance
    Field Value
    Type Description
    System.Single

    m_xmlAttribute

    Declaration
    protected XML_TagAttribute[] m_xmlAttribute
    Field Value
    Type Description
    XML_TagAttribute[]

    old_text

    Declaration
    protected string old_text
    Field Value
    Type Description
    System.String

    s_colorWhite

    Declaration
    protected static Color32 s_colorWhite
    Field Value
    Type Description
    Color32

    tag_Indent

    Declaration
    protected float tag_Indent
    Field Value
    Type Description
    System.Single

    tag_LineIndent

    Declaration
    protected float tag_LineIndent
    Field Value
    Type Description
    System.Single

    tag_NoParsing

    Declaration
    protected bool tag_NoParsing
    Field Value
    Type Description
    System.Boolean

    Properties

    alignment

    Text alignment options

    Declaration
    public TextAlignmentOptions alignment { get; set; }
    Property Value
    Type Description
    TextAlignmentOptions

    alpha

    Sets the vertex color alpha value.

    Declaration
    public float alpha { get; set; }
    Property Value
    Type Description
    System.Single

    autoSizeTextContainer

    Enables control over setting the size of the text container to match the text object.

    Declaration
    public virtual bool autoSizeTextContainer { get; set; }
    Property Value
    Type Description
    System.Boolean

    bounds

    Returns the bounds of the mesh of the text object in world space.

    Declaration
    public Bounds bounds { get; }
    Property Value
    Type Description
    Bounds

    characterSpacing

    The amount of additional spacing between characters.

    Declaration
    public float characterSpacing { get; set; }
    Property Value
    Type Description
    System.Single

    characterWidthAdjustment

    Percentage the width of characters can be adjusted before text auto-sizing begins to reduce the point size.

    Declaration
    public float characterWidthAdjustment { get; set; }
    Property Value
    Type Description
    System.Single

    color

    This is the default vertex color assigned to each vertices. Color tags will override vertex colors unless the overrideColorTags is set.

    Declaration
    public override Color color { get; set; }
    Property Value
    Type Description
    Color
    Overrides
    UnityEngine.UI.Graphic.color

    colorGradient

    Sets the vertex colors for each of the 4 vertices of the character quads.

    Declaration
    public VertexGradient colorGradient { get; set; }
    Property Value
    Type Description
    VertexGradient

    The color gradient.

    colorGradientPreset

    Set the vertex colors of the 4 vertices of each character quads.

    Declaration
    public TMP_ColorGradient colorGradientPreset { get; set; }
    Property Value
    Type Description
    TMP_ColorGradient

    enableAutoSizing

    Enable text auto-sizing

    Declaration
    public bool enableAutoSizing { get; set; }
    Property Value
    Type Description
    System.Boolean

    enableCulling

    Sets the culling on the shaders. Note changing this value will result in an instance of the material.

    Declaration
    public bool enableCulling { get; set; }
    Property Value
    Type Description
    System.Boolean

    enableKerning

    Determines if kerning is enabled or disabled.

    Declaration
    public bool enableKerning { get; set; }
    Property Value
    Type Description
    System.Boolean

    enableVertexGradient

    Determines if Vertex Color Gradient should be used

    Declaration
    public bool enableVertexGradient { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if enable vertex gradient; otherwise, false.

    enableWordWrapping

    Controls whether or not word wrapping is applied. When disabled, the text will be displayed on a single line.

    Declaration
    public bool enableWordWrapping { get; set; }
    Property Value
    Type Description
    System.Boolean

    extraPadding

    Adds extra padding around each character. This may be necessary when the displayed text is very small to prevent clipping.

    Declaration
    public bool extraPadding { get; set; }
    Property Value
    Type Description
    System.Boolean

    faceColor

    Sets the color of the _FaceColor property of the assigned material. Changing face color will result in an instance of the material.

    Declaration
    public Color32 faceColor { get; set; }
    Property Value
    Type Description
    Color32

    firstOverflowCharacterIndex

    The first character which exceeds the vertical bounds of its text container.

    Declaration
    public int firstOverflowCharacterIndex { get; }
    Property Value
    Type Description
    System.Int32

    firstVisibleCharacter

    The first character which should be made visible in conjunction with the Text Overflow Linked mode.

    Declaration
    public int firstVisibleCharacter { get; set; }
    Property Value
    Type Description
    System.Int32

    flexibleHeight

    Declaration
    public float flexibleHeight { get; }
    Property Value
    Type Description
    System.Single

    flexibleWidth

    Declaration
    public float flexibleWidth { get; }
    Property Value
    Type Description
    System.Single

    font

    The Font Asset to be assigned to this text object.

    Declaration
    public TMP_FontAsset font { get; set; }
    Property Value
    Type Description
    TMP_FontAsset

    fontMaterial

    The material to be assigned to this text object. An instance of the material will be assigned to the object's renderer.

    Declaration
    public Material fontMaterial { get; set; }
    Property Value
    Type Description
    Material

    fontMaterials

    The materials to be assigned to this text object. An instance of the materials will be assigned.

    Declaration
    public virtual Material[] fontMaterials { get; set; }
    Property Value
    Type Description
    Material[]

    fontScale

    The scale of the current text.

    Declaration
    public float fontScale { get; }
    Property Value
    Type Description
    System.Single

    fontSharedMaterial

    The material to be assigned to this text object.

    Declaration
    public virtual Material fontSharedMaterial { get; set; }
    Property Value
    Type Description
    Material

    fontSharedMaterials

    An array containing the materials used by the text object.

    Declaration
    public virtual Material[] fontSharedMaterials { get; set; }
    Property Value
    Type Description
    Material[]

    fontSize

    The point size of the font.

    Declaration
    public float fontSize { get; set; }
    Property Value
    Type Description
    System.Single

    fontSizeMax

    Maximum point size of the font when text auto-sizing is enabled.

    Declaration
    public float fontSizeMax { get; set; }
    Property Value
    Type Description
    System.Single

    fontSizeMin

    Minimum point size of the font when text auto-sizing is enabled.

    Declaration
    public float fontSizeMin { get; set; }
    Property Value
    Type Description
    System.Single

    fontStyle

    The style of the text

    Declaration
    public FontStyles fontStyle { get; set; }
    Property Value
    Type Description
    FontStyles

    fontWeight

    Control the weight of the font if an alternative font asset is assigned for the given weight in the font asset editor.

    Declaration
    public int fontWeight { get; set; }
    Property Value
    Type Description
    System.Int32

    geometrySortingOrder

    Determines the sorting order of the geometry of the text object.

    Declaration
    public VertexSortingOrder geometrySortingOrder { get; set; }
    Property Value
    Type Description
    VertexSortingOrder

    havePropertiesChanged

    Property tracking if any of the text properties have changed. Flag is set before the text is regenerated.

    Declaration
    public bool havePropertiesChanged { get; set; }
    Property Value
    Type Description
    System.Boolean

    horizontalMapping

    Controls how the face and outline textures will be applied to the text object.

    Declaration
    public TextureMappingOptions horizontalMapping { get; set; }
    Property Value
    Type Description
    TextureMappingOptions

    ignoreRectMaskCulling

    Controls whether or not the text object will be culled when using a 2D Rect Mask.

    Declaration
    public bool ignoreRectMaskCulling { get; set; }
    Property Value
    Type Description
    System.Boolean

    ignoreVisibility

    Forces objects that are not visible to get refreshed.

    Declaration
    public bool ignoreVisibility { get; set; }
    Property Value
    Type Description
    System.Boolean

    isLinkedTextComponent

    Indicates whether this text component is linked to another.

    Declaration
    public bool isLinkedTextComponent { get; set; }
    Property Value
    Type Description
    System.Boolean

    isOrthographic

    Declaration
    public bool isOrthographic { get; set; }
    Property Value
    Type Description
    System.Boolean

    isOverlay

    Sets the RenderQueue along with Ztest to force the text to be drawn last and on top of scene elements.

    Declaration
    public bool isOverlay { get; set; }
    Property Value
    Type Description
    System.Boolean

    isRightToLeftText

    Declaration
    public bool isRightToLeftText { get; set; }
    Property Value
    Type Description
    System.Boolean

    isTextOverflowing

    Indicates if the text exceeds the vertical bounds of its text container.

    Declaration
    public bool isTextOverflowing { get; }
    Property Value
    Type Description
    System.Boolean

    isTextTruncated

    Property indicating whether the text is Truncated or using Ellipsis.

    Declaration
    public bool isTextTruncated { get; }
    Property Value
    Type Description
    System.Boolean

    isUsingBold

    Property used in conjunction with padding calculation for the geometry.

    Declaration
    public bool isUsingBold { get; }
    Property Value
    Type Description
    System.Boolean

    isUsingLegacyAnimationComponent

    Property to handle legacy animation component.

    Declaration
    public bool isUsingLegacyAnimationComponent { get; set; }
    Property Value
    Type Description
    System.Boolean

    isVolumetricText

    Determines if the geometry of the characters will be quads or volumetric (cubes).

    Declaration
    public bool isVolumetricText { get; set; }
    Property Value
    Type Description
    System.Boolean

    layoutElement

    Declaration
    protected LayoutElement layoutElement { get; }
    Property Value
    Type Description
    UnityEngine.UI.LayoutElement

    layoutPriority

    Declaration
    public int layoutPriority { get; }
    Property Value
    Type Description
    System.Int32

    lineSpacing

    The amount of additional spacing to add between each lines of text.

    Declaration
    public float lineSpacing { get; set; }
    Property Value
    Type Description
    System.Single

    lineSpacingAdjustment

    The amount of potential line spacing adjustment before text auto sizing kicks in.

    Declaration
    public float lineSpacingAdjustment { get; set; }
    Property Value
    Type Description
    System.Single

    linkedTextComponent

    The linked text component used for flowing the text from one text component to another.

    Declaration
    public TMP_Text linkedTextComponent { get; set; }
    Property Value
    Type Description
    TMP_Text

    mappingUvLineOffset

    Controls the horizontal offset of the UV of the texture mapping mode for each line of the text object.

    Declaration
    public float mappingUvLineOffset { get; set; }
    Property Value
    Type Description
    System.Single

    margin

    The margins of the text object.

    Declaration
    public virtual Vector4 margin { get; set; }
    Property Value
    Type Description
    Vector4

    maxHeight

    Declaration
    public float maxHeight { get; }
    Property Value
    Type Description
    System.Single

    maxVisibleCharacters

    Allows to control how many characters are visible from the input.

    Declaration
    public int maxVisibleCharacters { get; set; }
    Property Value
    Type Description
    System.Int32

    maxVisibleLines

    Allows control over how many lines of text are displayed.

    Declaration
    public int maxVisibleLines { get; set; }
    Property Value
    Type Description
    System.Int32

    maxVisibleWords

    Allows to control how many words are visible from the input.

    Declaration
    public int maxVisibleWords { get; set; }
    Property Value
    Type Description
    System.Int32

    maxWidth

    Declaration
    public float maxWidth { get; }
    Property Value
    Type Description
    System.Single

    mesh

    The mesh used by the font asset and material assigned to the text object.

    Declaration
    public virtual Mesh mesh { get; }
    Property Value
    Type Description
    Mesh

    minHeight

    Declaration
    public float minHeight { get; }
    Property Value
    Type Description
    System.Single

    minWidth

    Declaration
    public float minWidth { get; }
    Property Value
    Type Description
    System.Single

    outlineColor

    Sets the color of the _OutlineColor property of the assigned material. Changing outline color will result in an instance of the material.

    Declaration
    public Color32 outlineColor { get; set; }
    Property Value
    Type Description
    Color32

    outlineWidth

    Sets the thickness of the outline of the font. Setting this value will result in an instance of the material.

    Declaration
    public float outlineWidth { get; set; }
    Property Value
    Type Description
    System.Single

    overflowMode

    Controls the Text Overflow Mode

    Declaration
    public TextOverflowModes overflowMode { get; set; }
    Property Value
    Type Description
    TextOverflowModes

    overrideColorTags

    This overrides the color tags forcing the vertex colors to be the default font color.

    Declaration
    public bool overrideColorTags { get; set; }
    Property Value
    Type Description
    System.Boolean

    pageToDisplay

    Controls which page of text is shown

    Declaration
    public int pageToDisplay { get; set; }
    Property Value
    Type Description
    System.Int32

    paragraphSpacing

    The amount of additional spacing to add between each lines of text.

    Declaration
    public float paragraphSpacing { get; set; }
    Property Value
    Type Description
    System.Single

    parseCtrlCharacters

    Enables or Disables parsing of CTRL characters in input text.

    Declaration
    public bool parseCtrlCharacters { get; set; }
    Property Value
    Type Description
    System.Boolean

    pixelsPerUnit

    Declaration
    public float pixelsPerUnit { get; }
    Property Value
    Type Description
    System.Single

    preferredHeight

    Computed preferred height of the text object.

    Declaration
    public virtual float preferredHeight { get; }
    Property Value
    Type Description
    System.Single

    preferredWidth

    Computed preferred width of the text object.

    Declaration
    public virtual float preferredWidth { get; }
    Property Value
    Type Description
    System.Single

    rectTransform

    Returns are reference to the RectTransform

    Declaration
    public RectTransform rectTransform { get; }
    Property Value
    Type Description
    RectTransform

    renderedHeight

    Compute the rendered height of the text object.

    Declaration
    public virtual float renderedHeight { get; }
    Property Value
    Type Description
    System.Single

    renderedWidth

    Compute the rendered width of the text object.

    Declaration
    public virtual float renderedWidth { get; }
    Property Value
    Type Description
    System.Single

    renderMode

    Determines if the Mesh will be rendered.

    Declaration
    public TextRenderFlags renderMode { get; set; }
    Property Value
    Type Description
    TextRenderFlags

    richText

    Enables or Disables Rich Text Tags

    Declaration
    public bool richText { get; set; }
    Property Value
    Type Description
    System.Boolean

    spriteAnimator

    Component used to control and animate sprites in the text object.

    Declaration
    protected TMP_SpriteAnimator spriteAnimator { get; }
    Property Value
    Type Description
    TMP_SpriteAnimator

    spriteAsset

    Default Sprite Asset used by the text object.

    Declaration
    public TMP_SpriteAsset spriteAsset { get; set; }
    Property Value
    Type Description
    TMP_SpriteAsset

    text

    A string containing the text to be displayed.

    Declaration
    public string text { get; set; }
    Property Value
    Type Description
    System.String

    textBounds

    Returns the bounds of the text of the text object.

    Declaration
    public Bounds textBounds { get; }
    Property Value
    Type Description
    Bounds

    textInfo

    Returns data about the text object which includes information about each character, word, line, link, etc.

    Declaration
    public TMP_TextInfo textInfo { get; }
    Property Value
    Type Description
    TMP_TextInfo

    tintAllSprites

    Determines whether or not the sprite color is multiplies by the vertex color of the text.

    Declaration
    public bool tintAllSprites { get; set; }
    Property Value
    Type Description
    System.Boolean

    transform

    Returns are reference to the Transform

    Declaration
    public Transform transform { get; }
    Property Value
    Type Description
    Transform

    useMaxVisibleDescender

    Determines if the text's vertical alignment will be adjusted based on visible descender of the text.

    Declaration
    public bool useMaxVisibleDescender { get; set; }
    Property Value
    Type Description
    System.Boolean

    verticalMapping

    Controls how the face and outline textures will be applied to the text object.

    Declaration
    public TextureMappingOptions verticalMapping { get; set; }
    Property Value
    Type Description
    TextureMappingOptions

    wordSpacing

    The amount of additional spacing between words.

    Declaration
    public float wordSpacing { get; set; }
    Property Value
    Type Description
    System.Single

    wordWrappingRatios

    Controls the blending between using character and word spacing to fill-in the space for justified text.

    Declaration
    public float wordWrappingRatios { get; set; }
    Property Value
    Type Description
    System.Single

    Methods

    AddFloatToCharArray(Single, ref Int32, Int32)

    Function used in conjunction with SetText()

    Declaration
    protected void AddFloatToCharArray(float number, ref int index, int precision)
    Parameters
    Type Name Description
    System.Single number
    System.Int32 index
    System.Int32 precision

    AddIntToCharArray(Int32, ref Int32, Int32)

    // Function used in conjunction with SetText()

    Declaration
    protected void AddIntToCharArray(int number, ref int index, int precision)
    Parameters
    Type Name Description
    System.Int32 number
    System.Int32 index
    System.Int32 precision

    AdjustLineOffset(Int32, Int32, Single)

    Method to adjust line spacing as a result of using different fonts or font point size.

    Declaration
    protected virtual void AdjustLineOffset(int startIndex, int endIndex, float offset)
    Parameters
    Type Name Description
    System.Int32 startIndex
    System.Int32 endIndex
    System.Single offset

    CalculatePreferredValues(Single, Vector2, Boolean)

    Method to calculate the preferred width and height of the text object.

    Declaration
    protected virtual Vector2 CalculatePreferredValues(float defaultFontSize, Vector2 marginSize, bool ignoreTextAutoSizing)
    Parameters
    Type Name Description
    System.Single defaultFontSize
    Vector2 marginSize
    System.Boolean ignoreTextAutoSizing
    Returns
    Type Description
    Vector2

    ClearMesh()

    Function to clear the geometry of the Primary and Sub Text objects.

    Declaration
    public virtual void ClearMesh()

    ClearMesh(Boolean)

    Function to clear the geometry of the Primary and Sub Text objects.

    Declaration
    public virtual void ClearMesh(bool uploadGeometry)
    Parameters
    Type Name Description
    System.Boolean uploadGeometry

    ClearSubMeshObjects()

    Destroy Sub Mesh Objects.

    Declaration
    protected virtual void ClearSubMeshObjects()

    ComputeMarginSize()

    Function to force an update of the margin size.

    Declaration
    protected virtual void ComputeMarginSize()

    ConvertToFloat(Char[], Int32, Int32)

    Extracts a float value from char[] assuming we know the position of the start, end and decimal point.

    Declaration
    protected float ConvertToFloat(char[] chars, int startIndex, int length)
    Parameters
    Type Name Description
    System.Char[] chars
    System.Int32 startIndex
    System.Int32 length
    Returns
    Type Description
    System.Single

    ConvertToFloat(Char[], Int32, Int32, out Int32)

    Extracts a float value from char[] given a start index and length.

    Declaration
    protected float ConvertToFloat(char[] chars, int startIndex, int length, out int lastIndex)
    Parameters
    Type Name Description
    System.Char[] chars
    System.Int32 startIndex
    System.Int32 length
    System.Int32 lastIndex
    Returns
    Type Description
    System.Single

    CreateMaterialInstance(Material)

    Function used to create an instance of the material

    Declaration
    protected virtual Material CreateMaterialInstance(Material source)
    Parameters
    Type Name Description
    Material source
    Returns
    Type Description
    Material

    CrossFadeAlpha(Single, Single, Boolean)

    Tweens the alpha of the CanvasRenderer color associated with this Graphic.

    Declaration
    public override void CrossFadeAlpha(float alpha, float duration, bool ignoreTimeScale)
    Parameters
    Type Name Description
    System.Single alpha

    Target alpha.

    System.Single duration

    Duration of the tween in seconds.

    System.Boolean ignoreTimeScale

    Should ignore Time.scale?

    Overrides
    UnityEngine.UI.Graphic.CrossFadeAlpha(System.Single, System.Single, System.Boolean)

    CrossFadeColor(Color, Single, Boolean, Boolean)

    Tweens the CanvasRenderer color associated with this Graphic.

    Declaration
    public override void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha)
    Parameters
    Type Name Description
    Color targetColor

    Target color.

    System.Single duration

    Tween duration.

    System.Boolean ignoreTimeScale

    Should ignore Time.scale?

    System.Boolean useAlpha

    Should also Tween the alpha channel?

    DrawTextHighlight(Vector3, Vector3, ref Int32, Color32)

    Declaration
    protected virtual void DrawTextHighlight(Vector3 start, Vector3 end, ref int index, Color32 highlightColor)
    Parameters
    Type Name Description
    Vector3 start
    Vector3 end
    System.Int32 index
    Color32 highlightColor

    DrawUnderlineMesh(Vector3, Vector3, ref Int32, Single, Single, Single, Single, Color32)

    Method to add the underline geometry.

    Declaration
    protected virtual void DrawUnderlineMesh(Vector3 start, Vector3 end, ref int index, float startScale, float endScale, float maxScale, float sdfScale, Color32 underlineColor)
    Parameters
    Type Name Description
    Vector3 start
    Vector3 end
    System.Int32 index
    System.Single startScale
    System.Single endScale
    System.Single maxScale
    System.Single sdfScale
    Color32 underlineColor

    FillCharacterVertexBuffers(Int32, Int32)

    Store vertex attributes into the appropriate TMP_MeshInfo.

    Declaration
    protected virtual void FillCharacterVertexBuffers(int i, int index_X4)
    Parameters
    Type Name Description
    System.Int32 i
    System.Int32 index_X4

    FillCharacterVertexBuffers(Int32, Int32, Boolean)

    Declaration
    protected virtual void FillCharacterVertexBuffers(int i, int index_X4, bool isVolumetric)
    Parameters
    Type Name Description
    System.Int32 i
    System.Int32 index_X4
    System.Boolean isVolumetric

    FillSpriteVertexBuffers(Int32, Int32)

    Fill Vertex Buffers for Sprites

    Declaration
    protected virtual void FillSpriteVertexBuffers(int i, int index_X4)
    Parameters
    Type Name Description
    System.Int32 i
    System.Int32 index_X4

    ForceMeshUpdate()

    Function to force the regeneration of the text object.

    Declaration
    public virtual void ForceMeshUpdate()

    ForceMeshUpdate(Boolean)

    Function to force the regeneration of the text object.

    Declaration
    public virtual void ForceMeshUpdate(bool ignoreActiveState)
    Parameters
    Type Name Description
    System.Boolean ignoreActiveState

    If set to true, the text object will be regenerated regardless of is active state.

    GenerateTextMesh()

    Method which parses the text input, does the layout of the text as well as generating the geometry.

    Declaration
    protected virtual void GenerateTextMesh()

    GetCompoundBounds()

    Method returning the compound bounds of the text object and child sub objects.

    Declaration
    protected virtual Bounds GetCompoundBounds()
    Returns
    Type Description
    Bounds

    GetFontAssetForWeight(Int32)

    Declaration
    protected TMP_FontAsset GetFontAssetForWeight(int fontWeight)
    Parameters
    Type Name Description
    System.Int32 fontWeight
    Returns
    Type Description
    TMP_FontAsset

    GetMaterial(Material)

    Function called internally when a new material is assigned via the fontMaterial property.

    Declaration
    protected virtual Material GetMaterial(Material mat)
    Parameters
    Type Name Description
    Material mat
    Returns
    Type Description
    Material

    GetMaterials(Material[])

    Method returning instances of the materials used by the text object.

    Declaration
    protected virtual Material[] GetMaterials(Material[] mats)
    Parameters
    Type Name Description
    Material[] mats
    Returns
    Type Description
    Material[]

    GetPaddingForMaterial()

    Get the padding value for the currently assigned material

    Declaration
    protected virtual float GetPaddingForMaterial()
    Returns
    Type Description
    System.Single

    GetPaddingForMaterial(Material)

    Get the padding value for the given material

    Declaration
    protected virtual float GetPaddingForMaterial(Material mat)
    Parameters
    Type Name Description
    Material mat
    Returns
    Type Description
    System.Single

    GetParsedText()

    Function which returns the text after it has been parsed and rich text tags removed.

    Declaration
    public virtual string GetParsedText()
    Returns
    Type Description
    System.String

    GetPreferredHeight()

    Method to calculate the preferred height of a text object.

    Declaration
    protected float GetPreferredHeight()
    Returns
    Type Description
    System.Single

    GetPreferredHeight(Vector2)

    Method to calculate the preferred height of a text object.

    Declaration
    protected float GetPreferredHeight(Vector2 margin)
    Parameters
    Type Name Description
    Vector2 margin
    Returns
    Type Description
    System.Single

    GetPreferredValues()

    Function to Calculate the Preferred Width and Height of the text object.

    Declaration
    public Vector2 GetPreferredValues()
    Returns
    Type Description
    Vector2

    GetPreferredValues(Single, Single)

    Function to Calculate the Preferred Width and Height of the text object given the provided width and height.

    Declaration
    public Vector2 GetPreferredValues(float width, float height)
    Parameters
    Type Name Description
    System.Single width
    System.Single height
    Returns
    Type Description
    Vector2

    GetPreferredValues(String)

    Function to Calculate the Preferred Width and Height of the text object given a certain string.

    Declaration
    public Vector2 GetPreferredValues(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type Description
    Vector2

    GetPreferredValues(String, Single, Single)

    Function to Calculate the Preferred Width and Height of the text object given a certain string and size of text container.

    Declaration
    public Vector2 GetPreferredValues(string text, float width, float height)
    Parameters
    Type Name Description
    System.String text
    System.Single width
    System.Single height
    Returns
    Type Description
    Vector2

    GetPreferredWidth()

    Method to calculate the preferred width of a text object.

    Declaration
    protected float GetPreferredWidth()
    Returns
    Type Description
    System.Single

    GetPreferredWidth(Vector2)

    Method to calculate the preferred width of a text object.

    Declaration
    protected float GetPreferredWidth(Vector2 margin)
    Parameters
    Type Name Description
    Vector2 margin
    Returns
    Type Description
    System.Single

    GetRenderedHeight()

    Method returning the rendered height of the text object.

    Declaration
    protected float GetRenderedHeight()
    Returns
    Type Description
    System.Single

    GetRenderedHeight(Boolean)

    Method returning the rendered height of the text object.

    Declaration
    protected float GetRenderedHeight(bool onlyVisibleCharacters)
    Parameters
    Type Name Description
    System.Boolean onlyVisibleCharacters
    Returns
    Type Description
    System.Single

    GetRenderedValues()

    Method returning the rendered width and height of the text object.

    Declaration
    public Vector2 GetRenderedValues()
    Returns
    Type Description
    Vector2

    GetRenderedValues(Boolean)

    Declaration
    public Vector2 GetRenderedValues(bool onlyVisibleCharacters)
    Parameters
    Type Name Description
    System.Boolean onlyVisibleCharacters

    Should returned value only factor in visible characters and exclude those greater than maxVisibleCharacters for instance.

    Returns
    Type Description
    Vector2

    GetRenderedWidth()

    Method returning the rendered width of the text object.

    Declaration
    protected float GetRenderedWidth()
    Returns
    Type Description
    System.Single

    GetRenderedWidth(Boolean)

    Method returning the rendered width of the text object.

    Declaration
    protected float GetRenderedWidth(bool onlyVisibleCharacters)
    Parameters
    Type Name Description
    System.Boolean onlyVisibleCharacters
    Returns
    Type Description
    System.Single

    GetSharedMaterials()

    Method which returns an array containing the materials used by the text object.

    Declaration
    protected virtual Material[] GetSharedMaterials()
    Returns
    Type Description
    Material[]

    GetSpecialCharacters(TMP_FontAsset)

    Method used to find and cache references to the Underline and Ellipsis characters.

    Declaration
    protected void GetSpecialCharacters(TMP_FontAsset fontAsset)
    Parameters
    Type Name Description
    TMP_FontAsset fontAsset

    GetTextBounds()

    Method which returns the bounds of the text object;

    Declaration
    protected Bounds GetTextBounds()
    Returns
    Type Description
    Bounds

    GetTextBounds(Boolean)

    Method which returns the bounds of the text object;

    Declaration
    protected Bounds GetTextBounds(bool onlyVisibleCharacters)
    Parameters
    Type Name Description
    System.Boolean onlyVisibleCharacters
    Returns
    Type Description
    Bounds

    GetTextContainerLocalCorners()

    Method to return the local corners of the Text Container or RectTransform.

    Declaration
    protected virtual Vector3[] GetTextContainerLocalCorners()
    Returns
    Type Description
    Vector3[]

    GetTextInfo(String)

    Function used to evaluate the length of a text string.

    Declaration
    public virtual TMP_TextInfo GetTextInfo(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type Description
    TMP_TextInfo

    GetUTF16(Int32)

    Convert UTF-16 Hex to Char

    Declaration
    protected int GetUTF16(int i)
    Parameters
    Type Name Description
    System.Int32 i

    The index.

    Returns
    Type Description
    System.Int32

    The Unicode hex.

    GetUTF32(Int32)

    Convert UTF-32 Hex to Char

    Declaration
    protected int GetUTF32(int i)
    Parameters
    Type Name Description
    System.Int32 i

    The index.

    Returns
    Type Description
    System.Int32

    The Unicode hex.

    HexCharsToColor(Char[], Int32)

    Method to convert Hex color values to Color32

    Declaration
    protected Color32 HexCharsToColor(char[] hexChars, int tagCount)
    Parameters
    Type Name Description
    System.Char[] hexChars
    System.Int32 tagCount
    Returns
    Type Description
    Color32

    HexCharsToColor(Char[], Int32, Int32)

    Method to convert Hex Color values to Color32

    Declaration
    protected Color32 HexCharsToColor(char[] hexChars, int startIndex, int length)
    Parameters
    Type Name Description
    System.Char[] hexChars
    System.Int32 startIndex
    System.Int32 length
    Returns
    Type Description
    Color32

    HexToInt(Char)

    Method to convert Hex to Int

    Declaration
    protected int HexToInt(char hex)
    Parameters
    Type Name Description
    System.Char hex
    Returns
    Type Description
    System.Int32

    InternalCrossFadeAlpha(Single, Single, Boolean)

    Declaration
    protected virtual void InternalCrossFadeAlpha(float alpha, float duration, bool ignoreTimeScale)
    Parameters
    Type Name Description
    System.Single alpha
    System.Single duration
    System.Boolean ignoreTimeScale

    InternalCrossFadeColor(Color, Single, Boolean, Boolean)

    Declaration
    protected virtual void InternalCrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha)
    Parameters
    Type Name Description
    Color targetColor
    System.Single duration
    System.Boolean ignoreTimeScale
    System.Boolean useAlpha

    LoadDefaultSettings()

    Internal function used to load the default settings of text objects.

    Declaration
    protected void LoadDefaultSettings()

    LoadFontAsset()

    Method which derived classes need to override to load Font Assets.

    Declaration
    protected virtual void LoadFontAsset()

    PackUV(Single, Single)

    Declaration
    protected float PackUV(float x, float y)
    Parameters
    Type Name Description
    System.Single x
    System.Single y
    Returns
    Type Description
    System.Single

    PackUV(Single, Single, Single)

    Function to pack scale information in the UV2 Channel.

    Declaration
    protected Vector2 PackUV(float x, float y, float scale)
    Parameters
    Type Name Description
    System.Single x
    System.Single y
    System.Single scale
    Returns
    Type Description
    Vector2

    ParseInputText()

    Method to parse the input text based on its source

    Declaration
    protected void ParseInputText()

    ReplaceTagWithCharacter(Int32[], Int32, Int32, Char)

    Replace a given number of characters (tag) in the array with a new character and shift subsequent characters in the array.

    Declaration
    protected void ReplaceTagWithCharacter(int[] chars, int insertionIndex, int tagLength, char c)
    Parameters
    Type Name Description
    System.Int32[] chars

    Array which contains the text.

    System.Int32 insertionIndex

    The index of where the new character will be inserted

    System.Int32 tagLength

    Length of the tag being replaced.

    System.Char c

    The replacement character.

    ResizeLineExtents(Int32)

    Function to increase the size of the Line Extents Array.

    Declaration
    protected void ResizeLineExtents(int size)
    Parameters
    Type Name Description
    System.Int32 size

    RestoreWordWrappingState(ref WordWrapState)

    Restore the State of various variables used in the mesh creation loop.

    Declaration
    protected int RestoreWordWrappingState(ref WordWrapState state)
    Parameters
    Type Name Description
    WordWrapState state
    Returns
    Type Description
    System.Int32

    SaveGlyphVertexInfo(Single, Single, Color32)

    Store vertex information for each character.

    Declaration
    protected virtual void SaveGlyphVertexInfo(float padding, float style_padding, Color32 vertexColor)
    Parameters
    Type Name Description
    System.Single padding
    System.Single style_padding

    Style_padding.

    Color32 vertexColor

    Vertex color.

    SaveSpriteVertexInfo(Color32)

    Store vertex information for each sprite.

    Declaration
    protected virtual void SaveSpriteVertexInfo(Color32 vertexColor)
    Parameters
    Type Name Description
    Color32 vertexColor

    SaveWordWrappingState(ref WordWrapState, Int32, Int32)

    Save the State of various variables used in the mesh creation loop in conjunction with Word Wrapping

    Declaration
    protected void SaveWordWrappingState(ref WordWrapState state, int index, int count)
    Parameters
    Type Name Description
    WordWrapState state
    System.Int32 index
    System.Int32 count

    SetActiveSubMeshes(Boolean)

    Method to Enable or Disable child SubMesh objects.

    Declaration
    protected virtual void SetActiveSubMeshes(bool state)
    Parameters
    Type Name Description
    System.Boolean state

    SetArraySizes(Int32[])

    Method used to determine the number of visible characters and required buffer allocations.

    Declaration
    protected virtual int SetArraySizes(int[] chars)
    Parameters
    Type Name Description
    System.Int32[] chars
    Returns
    Type Description
    System.Int32

    SetCharArray(Char[])

    Character array containing the text to be displayed.

    Declaration
    public void SetCharArray(char[] sourceText)
    Parameters
    Type Name Description
    System.Char[] sourceText

    SetCharArray(Char[], Int32, Int32)

    Character array containing the text to be displayed.

    Declaration
    public void SetCharArray(char[] sourceText, int start, int length)
    Parameters
    Type Name Description
    System.Char[] sourceText
    System.Int32 start
    System.Int32 length

    SetCharArray(Int32[], Int32, Int32)

    Character array containing the text to be displayed.

    Declaration
    public void SetCharArray(int[] sourceText, int start, int length)
    Parameters
    Type Name Description
    System.Int32[] sourceText
    System.Int32 start
    System.Int32 length

    SetCulling()

    Set the culling mode on the material.

    Declaration
    protected virtual void SetCulling()

    SetFaceColor(Color32)

    Function called internally to set the face color of the material. This will results in an instance of the material.

    Declaration
    protected virtual void SetFaceColor(Color32 color)
    Parameters
    Type Name Description
    Color32 color

    SetFontBaseMaterial(Material)

    Function called internally when assigning a new base material.

    Declaration
    protected virtual void SetFontBaseMaterial(Material mat)
    Parameters
    Type Name Description
    Material mat

    SetOutlineColor(Color32)

    Function called internally to set the outline color of the material. This will results in an instance of the material.

    Declaration
    protected virtual void SetOutlineColor(Color32 color)
    Parameters
    Type Name Description
    Color32 color

    SetOutlineThickness(Single)

    Function called internally to set the outline thickness property of the material. This will results in an instance of the material.

    Declaration
    protected virtual void SetOutlineThickness(float thickness)
    Parameters
    Type Name Description
    System.Single thickness

    SetShaderDepth()

    Set the Render Queue and ZTest mode on the current material

    Declaration
    protected virtual void SetShaderDepth()

    SetSharedMaterial(Material)

    Function called internally when a new shared material is assigned via the fontSharedMaterial property.

    Declaration
    protected virtual void SetSharedMaterial(Material mat)
    Parameters
    Type Name Description
    Material mat

    SetSharedMaterials(Material[])

    Declaration
    protected virtual void SetSharedMaterials(Material[] materials)
    Parameters
    Type Name Description
    Material[] materials

    SetText(String)

    Declaration
    public void SetText(string text)
    Parameters
    Type Name Description
    System.String text

    SetText(String, Boolean)

    Declaration
    public void SetText(string text, bool syncTextInputBox)
    Parameters
    Type Name Description
    System.String text
    System.Boolean syncTextInputBox

    SetText(String, Single)

    Formatted string containing a pattern and a value representing the text to be rendered.

    ex. TextMeshPro.SetText ("Number is {0:1}.", 5.56f);

    Declaration
    public void SetText(string text, float arg0)
    Parameters
    Type Name Description
    System.String text

    String containing the pattern."

    System.Single arg0

    Value is a float.

    SetText(String, Single, Single)

    Formatted string containing a pattern and a value representing the text to be rendered.

    ex. TextMeshPro.SetText ("First number is {0} and second is {1:2}.", 10, 5.756f);

    Declaration
    public void SetText(string text, float arg0, float arg1)
    Parameters
    Type Name Description
    System.String text

    String containing the pattern."

    System.Single arg0

    Value is a float.

    System.Single arg1

    Value is a float.

    SetText(String, Single, Single, Single)

    Formatted string containing a pattern and a value representing the text to be rendered.

    ex. TextMeshPro.SetText ("A = {0}, B = {1} and C = {2}.", 2, 5, 7);

    Declaration
    public void SetText(string text, float arg0, float arg1, float arg2)
    Parameters
    Type Name Description
    System.String text

    String containing the pattern."

    System.Single arg0

    Value is a float.

    System.Single arg1

    Value is a float.

    System.Single arg2

    Value is a float.

    SetText(StringBuilder)

    Set the text using a StringBuilder.

    Declaration
    public void SetText(StringBuilder text)
    Parameters
    Type Name Description
    System.Text.StringBuilder text

    StringBuilder with text to display.

    SetTextArrayToCharArray(Char[], ref Int32[])

    Copies Content of formatted SetText() to charBuffer.

    Declaration
    protected void SetTextArrayToCharArray(char[] sourceText, ref int[] charBuffer)
    Parameters
    Type Name Description
    System.Char[] sourceText
    System.Int32[] charBuffer

    SetTextSortingOrder(Int32[])

    Function to sort the geometry of the text object in accordance to the provided order.

    Declaration
    protected void SetTextSortingOrder(int[] order)
    Parameters
    Type Name Description
    System.Int32[] order

    SetTextSortingOrder(VertexSortingOrder)

    Function to control the sorting of the geometry of the text object.

    Declaration
    protected void SetTextSortingOrder(VertexSortingOrder order)
    Parameters
    Type Name Description
    VertexSortingOrder order

    SetVertexColorGradient(TMP_ColorGradient)

    Declaration
    protected void SetVertexColorGradient(TMP_ColorGradient gradient)
    Parameters
    Type Name Description
    TMP_ColorGradient gradient

    SetVertices(Vector3[])

    Function to push a new set of vertices to the mesh.

    Declaration
    public virtual void SetVertices(Vector3[] vertices)
    Parameters
    Type Name Description
    Vector3[] vertices

    StringBuilderToIntArray(StringBuilder, ref Int32[])

    Copy contents of StringBuilder into int array.

    Declaration
    protected void StringBuilderToIntArray(StringBuilder sourceText, ref int[] charBuffer)
    Parameters
    Type Name Description
    System.Text.StringBuilder sourceText

    Text to copy.

    System.Int32[] charBuffer

    Array to store contents.

    StringToCharArray(String, ref Int32[])

    Method to store the content of a string into an integer array.

    Declaration
    protected void StringToCharArray(string sourceText, ref int[] charBuffer)
    Parameters
    Type Name Description
    System.String sourceText
    System.Int32[] charBuffer

    UpdateGeometry(Mesh, Int32)

    Function to update the geometry of the main and sub text objects.

    Declaration
    public virtual void UpdateGeometry(Mesh mesh, int index)
    Parameters
    Type Name Description
    Mesh mesh
    System.Int32 index

    UpdateMeshPadding()

    Function to be used to force recomputing of character padding when Shader / Material properties have been changed via script.

    Declaration
    public virtual void UpdateMeshPadding()

    UpdateVertexData()

    Function to push the updated vertex data into the mesh and renderer.

    Declaration
    public virtual void UpdateVertexData()

    UpdateVertexData(TMP_VertexDataUpdateFlags)

    Function to push the updated vertex data into the mesh and renderer.

    Declaration
    public virtual void UpdateVertexData(TMP_VertexDataUpdateFlags flags)
    Parameters
    Type Name Description
    TMP_VertexDataUpdateFlags flags

    ValidateHtmlTag(Int32[], Int32, out Int32)

    Function to identify and validate the rich tag. Returns the position of the > if the tag was valid.

    Declaration
    protected bool ValidateHtmlTag(int[] chars, int startIndex, out int endIndex)
    Parameters
    Type Name Description
    System.Int32[] chars
    System.Int32 startIndex
    System.Int32 endIndex
    Returns
    Type Description
    System.Boolean
    In This Article
    • Fields
      • checkPaddingRequired
      • k_LargeNegativeFloat
      • k_LargeNegativeInt
      • k_LargeNegativeVector2
      • k_LargePositiveFloat
      • k_LargePositiveInt
      • k_LargePositiveVector2
      • m_actionStack
      • m_attributeParameterValues
      • m_autoSizeTextContainer
      • m_baselineOffset
      • m_baselineOffsetStack
      • m_cached_Ellipsis_GlyphInfo
      • m_cached_TextElement
      • m_cached_Underline_GlyphInfo
      • m_char_buffer
      • m_characterCount
      • m_characterSpacing
      • m_charWidthAdjDelta
      • m_charWidthMaxAdj
      • m_colorGradientPreset
      • m_colorGradientStack
      • m_colorStack
      • m_cSpacing
      • m_currentFontAsset
      • m_currentFontSize
      • m_currentMaterial
      • m_currentMaterialIndex
      • m_currentSpriteAsset
      • m_defaultSpriteAsset
      • m_enableAutoSizing
      • m_enableExtraPadding
      • m_enableKerning
      • m_enableVertexGradient
      • m_enableWordWrapping
      • m_faceColor
      • m_firstCharacterOfLine
      • m_firstOverflowCharacterIndex
      • m_firstVisibleCharacter
      • m_firstVisibleCharacterOfLine
      • m_flexibleHeight
      • m_flexibleWidth
      • m_fontAsset
      • m_fontColor
      • m_fontColor32
      • m_fontColorGradient
      • m_fontColorGradientPreset
      • m_fontMaterial
      • m_fontMaterials
      • m_fontScale
      • m_fontScaleMultiplier
      • m_fontSharedMaterials
      • m_fontSize
      • m_fontSizeBase
      • m_fontSizeMax
      • m_fontSizeMin
      • m_fontStyle
      • m_fontStyleStack
      • m_fontWeight
      • m_fontWeightInternal
      • m_fontWeightStack
      • m_FXMatrix
      • m_geometrySortingOrder
      • m_havePropertiesChanged
      • m_highlightColor
      • m_highlightColorStack
      • m_horizontalMapping
      • m_htmlColor
      • m_htmlTag
      • m_ignoreActiveState
      • m_ignoreCulling
      • m_ignoreRectMaskCulling
      • m_indentStack
      • m_input_CharArray
      • m_inputSource
      • m_isAlignmentEnumConverted
      • m_isAwake
      • m_isCalculateSizeRequired
      • m_isCalculatingPreferredValues
      • m_isCharacterWrappingEnabled
      • m_isCullingEnabled
      • m_isFXMatrixSet
      • m_isIgnoringAlignment
      • m_isInputParsingRequired
      • m_isLayoutDirty
      • m_isLinkedTextComponent
      • m_isMaterialDirty
      • m_isNewPage
      • m_isNonBreakingSpace
      • m_isOrthographic
      • m_isOverlay
      • m_isParsingText
      • m_isPreferredHeightDirty
      • m_isPreferredWidthDirty
      • m_isRichText
      • m_isRightToLeft
      • m_isSDFShader
      • m_isTextTruncated
      • m_isUsingBold
      • m_isUsingLegacyAnimationComponent
      • m_isVolumetricText
      • m_isWaitingOnResourceLoad
      • m_lastCharacterOfLine
      • m_lastVisibleCharacterOfLine
      • m_layoutAlreadyDirty
      • m_LayoutElement
      • m_layoutPriority
      • m_lineHeight
      • m_lineJustification
      • m_lineJustificationStack
      • m_lineNumber
      • m_lineOffset
      • m_lineSpacing
      • m_lineSpacingDelta
      • m_lineSpacingMax
      • m_lineVisibleCharacterCount
      • m_linkedTextComponent
      • m_margin
      • m_marginHeight
      • m_marginLeft
      • m_marginRight
      • m_marginWidth
      • m_materialReferenceIndexLookup
      • m_materialReferences
      • m_materialReferenceStack
      • m_maxAscender
      • m_maxCapHeight
      • m_maxDescender
      • m_maxFontSize
      • m_maxHeight
      • m_maxLineAscender
      • m_maxLineDescender
      • m_maxVisibleCharacters
      • m_maxVisibleLines
      • m_maxVisibleWords
      • m_maxWidth
      • m_mesh
      • m_meshExtents
      • m_minFontSize
      • m_minHeight
      • m_minWidth
      • m_monoSpacing
      • m_outlineColor
      • m_outlineWidth
      • m_overflowMode
      • m_overrideHtmlColors
      • m_padding
      • m_pageNumber
      • m_pageToDisplay
      • m_paragraphSpacing
      • m_parseCtrlCharacters
      • m_preferredHeight
      • m_preferredWidth
      • m_rectTransform
      • m_renderedHeight
      • m_renderedWidth
      • m_renderMode
      • m_SavedLineState
      • m_SavedWordWrapState
      • m_sharedMaterial
      • m_sizeStack
      • m_spacing
      • m_spriteAnimationID
      • m_spriteAnimator
      • m_spriteAsset
      • m_spriteColor
      • m_spriteCount
      • m_spriteIndex
      • m_startOfLineAscender
      • m_strikethroughColor
      • m_strikethroughColorStack
      • m_style
      • m_styleStack
      • m_tabSpacing
      • m_text
      • m_textAlignment
      • m_textContainerLocalCorners
      • m_textElementType
      • m_textInfo
      • m_tintAllSprites
      • m_tintSprite
      • m_totalCharacterCount
      • m_transform
      • m_underlineColor
      • m_underlineColorStack
      • m_useMaxVisibleDescender
      • m_uvLineOffset
      • m_verticalMapping
      • m_verticesAlreadyDirty
      • m_width
      • m_wordSpacing
      • m_wordWrappingRatios
      • m_xAdvance
      • m_xmlAttribute
      • old_text
      • s_colorWhite
      • tag_Indent
      • tag_LineIndent
      • tag_NoParsing
    • Properties
      • alignment
      • alpha
      • autoSizeTextContainer
      • bounds
      • characterSpacing
      • characterWidthAdjustment
      • color
      • colorGradient
      • colorGradientPreset
      • enableAutoSizing
      • enableCulling
      • enableKerning
      • enableVertexGradient
      • enableWordWrapping
      • extraPadding
      • faceColor
      • firstOverflowCharacterIndex
      • firstVisibleCharacter
      • flexibleHeight
      • flexibleWidth
      • font
      • fontMaterial
      • fontMaterials
      • fontScale
      • fontSharedMaterial
      • fontSharedMaterials
      • fontSize
      • fontSizeMax
      • fontSizeMin
      • fontStyle
      • fontWeight
      • geometrySortingOrder
      • havePropertiesChanged
      • horizontalMapping
      • ignoreRectMaskCulling
      • ignoreVisibility
      • isLinkedTextComponent
      • isOrthographic
      • isOverlay
      • isRightToLeftText
      • isTextOverflowing
      • isTextTruncated
      • isUsingBold
      • isUsingLegacyAnimationComponent
      • isVolumetricText
      • layoutElement
      • layoutPriority
      • lineSpacing
      • lineSpacingAdjustment
      • linkedTextComponent
      • mappingUvLineOffset
      • margin
      • maxHeight
      • maxVisibleCharacters
      • maxVisibleLines
      • maxVisibleWords
      • maxWidth
      • mesh
      • minHeight
      • minWidth
      • outlineColor
      • outlineWidth
      • overflowMode
      • overrideColorTags
      • pageToDisplay
      • paragraphSpacing
      • parseCtrlCharacters
      • pixelsPerUnit
      • preferredHeight
      • preferredWidth
      • rectTransform
      • renderedHeight
      • renderedWidth
      • renderMode
      • richText
      • spriteAnimator
      • spriteAsset
      • text
      • textBounds
      • textInfo
      • tintAllSprites
      • transform
      • useMaxVisibleDescender
      • verticalMapping
      • wordSpacing
      • wordWrappingRatios
    • Methods
      • AddFloatToCharArray(Single, ref Int32, Int32)
      • AddIntToCharArray(Int32, ref Int32, Int32)
      • AdjustLineOffset(Int32, Int32, Single)
      • CalculatePreferredValues(Single, Vector2, Boolean)
      • ClearMesh()
      • ClearMesh(Boolean)
      • ClearSubMeshObjects()
      • ComputeMarginSize()
      • ConvertToFloat(Char[], Int32, Int32)
      • ConvertToFloat(Char[], Int32, Int32, out Int32)
      • CreateMaterialInstance(Material)
      • CrossFadeAlpha(Single, Single, Boolean)
      • CrossFadeColor(Color, Single, Boolean, Boolean)
      • DrawTextHighlight(Vector3, Vector3, ref Int32, Color32)
      • DrawUnderlineMesh(Vector3, Vector3, ref Int32, Single, Single, Single, Single, Color32)
      • FillCharacterVertexBuffers(Int32, Int32)
      • FillCharacterVertexBuffers(Int32, Int32, Boolean)
      • FillSpriteVertexBuffers(Int32, Int32)
      • ForceMeshUpdate()
      • ForceMeshUpdate(Boolean)
      • GenerateTextMesh()
      • GetCompoundBounds()
      • GetFontAssetForWeight(Int32)
      • GetMaterial(Material)
      • GetMaterials(Material[])
      • GetPaddingForMaterial()
      • GetPaddingForMaterial(Material)
      • GetParsedText()
      • GetPreferredHeight()
      • GetPreferredHeight(Vector2)
      • GetPreferredValues()
      • GetPreferredValues(Single, Single)
      • GetPreferredValues(String)
      • GetPreferredValues(String, Single, Single)
      • GetPreferredWidth()
      • GetPreferredWidth(Vector2)
      • GetRenderedHeight()
      • GetRenderedHeight(Boolean)
      • GetRenderedValues()
      • GetRenderedValues(Boolean)
      • GetRenderedWidth()
      • GetRenderedWidth(Boolean)
      • GetSharedMaterials()
      • GetSpecialCharacters(TMP_FontAsset)
      • GetTextBounds()
      • GetTextBounds(Boolean)
      • GetTextContainerLocalCorners()
      • GetTextInfo(String)
      • GetUTF16(Int32)
      • GetUTF32(Int32)
      • HexCharsToColor(Char[], Int32)
      • HexCharsToColor(Char[], Int32, Int32)
      • HexToInt(Char)
      • InternalCrossFadeAlpha(Single, Single, Boolean)
      • InternalCrossFadeColor(Color, Single, Boolean, Boolean)
      • LoadDefaultSettings()
      • LoadFontAsset()
      • PackUV(Single, Single)
      • PackUV(Single, Single, Single)
      • ParseInputText()
      • ReplaceTagWithCharacter(Int32[], Int32, Int32, Char)
      • ResizeLineExtents(Int32)
      • RestoreWordWrappingState(ref WordWrapState)
      • SaveGlyphVertexInfo(Single, Single, Color32)
      • SaveSpriteVertexInfo(Color32)
      • SaveWordWrappingState(ref WordWrapState, Int32, Int32)
      • SetActiveSubMeshes(Boolean)
      • SetArraySizes(Int32[])
      • SetCharArray(Char[])
      • SetCharArray(Char[], Int32, Int32)
      • SetCharArray(Int32[], Int32, Int32)
      • SetCulling()
      • SetFaceColor(Color32)
      • SetFontBaseMaterial(Material)
      • SetOutlineColor(Color32)
      • SetOutlineThickness(Single)
      • SetShaderDepth()
      • SetSharedMaterial(Material)
      • SetSharedMaterials(Material[])
      • SetText(String)
      • SetText(String, Boolean)
      • SetText(String, Single)
      • SetText(String, Single, Single)
      • SetText(String, Single, Single, Single)
      • SetText(StringBuilder)
      • SetTextArrayToCharArray(Char[], ref Int32[])
      • SetTextSortingOrder(Int32[])
      • SetTextSortingOrder(VertexSortingOrder)
      • SetVertexColorGradient(TMP_ColorGradient)
      • SetVertices(Vector3[])
      • StringBuilderToIntArray(StringBuilder, ref Int32[])
      • StringToCharArray(String, ref Int32[])
      • UpdateGeometry(Mesh, Int32)
      • UpdateMeshPadding()
      • UpdateVertexData()
      • UpdateVertexData(TMP_VertexDataUpdateFlags)
      • ValidateHtmlTag(Int32[], Int32, out Int32)
    Back to top
    Copyright © 2025 Unity Technologies
    • 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 02 April 2025