Skip to content

TextMeshPro components

There are 8 TextMeshPro components.

TypesTMPro.TMP_Dropdown
TransformGets a RectTransform

It has 35 attributes.

AttributesTypesDefault valueChoices
alphaFadeSpeedfloat0.15
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
captionImageImageNoneA path to an object in the same prefab
captionTextTMP_TextNoneA path to an object in the same prefab
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
enabledbooltrue
interactablebooltrue
itemImageImageNoneA path to an object in the same prefab
itemTextTMP_TextNoneA path to an object in the same prefab
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
onValueChangedUnityEventNone
placeholderGraphicNoneA path to an object in the same prefab
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
templateRectTransformNoneA path to an object in the same prefab
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
valueint0
Attributes of the child element <OptionData> (Arrays of structs)TypesDefault value
textstringEmpty
imageSprite assetNone
TypesTMPro.TMP_InputField

It has 65 attributes.

AttributesTypesDefault valueChoices
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
caretBlinkRatefloat0.85
caretColorColor#323232
caretWidthint1
characterLimitint0≥ 0
characterValidationEnumerationsNoneNone・Digit・Integer・Decimal・Alphanumeric・Name・Regex・EmailAddress・CustomValidator
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
contentTypeEnumerationsStandardStandard・Autocorrected・IntegerNumber・DecimalNumber・Alphanumeric・Name・EmailAddress・Password・Pin・Custom
customCaretColorboolfalse
enabledbooltrue
globalFontAssetTMP_FontAssetNone
globalPointSizefloat14
inputTypeEnumerationsStandardStandard・AutoCorrect・Password
interactablebooltrue
isRichTextEditingAllowedboolfalse
keyboardTypeEnumerationsDefaultDefault・ASCIICapable・NumbersAndPunctuation・URL・NumberPad・PhonePad・NamePhonePad・EmailAddress・NintendoNetworkAccount・Social・Search・DecimalPad・OneTimeCode
layoutGroupLayoutGroupNoneA path to an object in the same prefab
lineLimitint0
lineTypeEnumerationsSingleLineSingleLine・MultiLineSubmit・MultiLineNewline
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
onDeselectUnityEventNone
onEndEditUnityEventNone
onEndTextSelectionUnityEventNone
onFocusSelectAllbooltrue
onSelectUnityEventNone
onSubmitUnityEventNone
onTextSelectionUnityEventNone
onTouchScreenKeyboardStatusChangedUnityEventNone
onValueChangedUnityEventNone
placeholderGraphicNoneA path to an object in the same prefab
readOnlyboolfalse
regexValuestringEmpty
resetOnDeActivationbooltrue
restoreOriginalTextOnEscapebooltrue
richTextbooltrue
scrollSensitivityfloat1
selectionColorColor#A8CEFFC0
shouldHideMobileInputboolfalse
shouldHideSoftKeyboardboolfalse
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
textstringEmpty
textComponentTMP_TextNoneA path to an object in the same prefab
textViewportRectTransformNoneA path to an object in the same prefab
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
verticalScrollbarScrollbarNoneA path to an object in the same prefab
verticalScrollbarEventHandlerTMP_ScrollbarEventHandlerNoneA path to an object in the same prefab
TypesTMPro.TMP_ScrollbarEventHandler

It has 2 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
isSelectedboolfalse
TypesTMPro.TMP_SelectionCaret
Components added automaticallyCanvasRenderer
TransformGets a RectTransform

It has 7 attributes.

AttributesTypesDefault valueChoices
colorColor#FFFFFF
enabledbooltrue
maskablebooltrue
materialMaterialNone
onCullStateChangedUnityEventNone
raycastPaddingVector40 0 0 0
raycastTargetbooltrue
TypesTMPro.TMP_SpriteAnimator

It has 1 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
TypesTMPro.TextContainer
TransformGets a RectTransform

It has 5 attributes.

AttributesTypesDefault valueChoices
anchorPositionEnumerationsMiddleTopLeft・Top・TopRight・Left・Middle・Right・BottomLeft・Bottom・BottomRight・Custom
enabledbooltrue
marginsVector40 0 0 0
pivotVector20 0
rectRect0 0 0 0
TypesTMPro.TextMeshPro
Components added automaticallyMeshRenderer
TransformGets a RectTransform

It has 71 attributes.

AttributesTypesDefault valueChoices
_SortingLayerint0
characterSpacingfloat0
characterWidthAdjustmentfloat0
checkPaddingRequiredboolfalse
colorColor#FFFFFF
colorGradientPresetTMP_ColorGradientNone
colorModeEnumerationsFourCornersGradientSingle・HorizontalGradient・VerticalGradient・FourCornersGradient
enableAutoSizingboolfalse
enableCullingboolfalse
enableKerningbooltrue
enableVertexGradientboolfalse
enableWordWrappingbooltrue
enabledbooltrue
extraPaddingboolfalse
fontAssetTMP_FontAssetA default asset
fontColorGradient.bottomLeftColor#FFFFFF
fontColorGradient.bottomRightColor#FFFFFF
fontColorGradient.topLeftColor#FFFFFF
fontColorGradient.topRightColor#FFFFFF
fontMaterialMaterialNone
fontMaterialsList (Material)EmptyA path to an asset
fontSharedMaterialMaterialA default asset
fontSharedMaterialsList (Material)EmptyA path to an asset
fontSizefloat36
fontSizeBasefloat36
fontSizeMaxfloat72
fontSizeMinfloat18
fontStyleEnum (combinable)NormalNormal・Bold・Italic・Underline・LowerCase・UpperCase・SmallCaps・Strikethrough・Superscript・Subscript・Highlight
fontWeightEnumerationsRegularThin・ExtraLight・Light・Regular・Medium・SemiBold・Bold・Heavy・Black
geometrySortingOrderEnumerationsNormalNormal・Reverse
hasFontAssetChangedboolfalse
horizontalAlignmentEnumerationsLeftLeft・Center・Right・Justified・Flush・Geometry
horizontalMappingEnumerationsCharacterCharacter・Line・Paragraph・MatchAspect
isOrthographicboolfalse
isRightToLeftTextboolfalse
isTextObjectScaleStaticboolfalse
isUsingLegacyAnimationComponentboolfalse
isVolumetricTextboolfalse
lineSpacingfloat0
lineSpacingAdjustmentfloat0
linkedTextComponentTMP_TextNoneA path to an object in the same prefab
mappingUvLineOffsetfloat0
marginVector40 0 0 0
maskTypeEnumerationsMaskOffMaskOff・MaskHard・MaskSoft
maskablebooltrue
materialMaterialNone
onCullStateChangedUnityEventNone
overflowModeEnumerationsOverflowOverflow・Ellipsis・Masking・Truncate・ScrollRect・Page・Linked
overrideColorTagsboolfalse
pageToDisplayint1
paragraphSpacingfloat0
parentLinkedComponentTMP_TextNoneA path to an object in the same prefab
parseCtrlCharactersbooltrue
raycastPaddingVector40 0 0 0
raycastTargetbooltrue
rendererRenderer.A path to an object in the same prefab
richTextbooltrue
sortingLayerIDint0
sortingOrderint0
spriteAssetTMP_SpriteAssetNone
styleSheetTMP_StyleSheetNone
textstringEmpty
textAlignmentEnumerationsConvertedTopLeft・Top・TopRight・TopJustified・TopFlush・TopGeoAligned・Left・Center・Right・Justified・Flush・CenterGeoAligned・BottomLeft・Bottom・BottomRight・BottomJustified・BottomFlush・BottomGeoAligned・BaselineLeft・Baseline・BaselineRight・BaselineJustified・BaselineFlush・BaselineGeoAligned・MidlineLeft・Midline・MidlineRight・MidlineJustified・MidlineFlush・MidlineGeoAligned・CaplineLeft・Capline・CaplineRight・CaplineJustified・CaplineFlush・CaplineGeoAligned・Converted
textStyleHashCodeint0
tintAllSpritesboolfalse
useMaxVisibleDescenderbooltrue
vertexBufferAutoSizeReductionboolfalse
verticalAlignmentEnumerationsTopTop・Middle・Bottom・Baseline・Geometry・Capline
verticalMappingEnumerationsCharacterCharacter・Line・Paragraph・MatchAspect
wordSpacingfloat0
wordWrappingRatiosfloat0.4
TypesTMPro.TextMeshProUGUI
Components added automaticallyCanvasRenderer
TransformGets a RectTransform

It has 68 attributes.

AttributesTypesDefault valueChoices
baseMaterialMaterialNone
characterSpacingfloat0
characterWidthAdjustmentfloat0
checkPaddingRequiredboolfalse
colorColor#FFFFFF
colorGradientPresetTMP_ColorGradientNone
colorModeEnumerationsFourCornersGradientSingle・HorizontalGradient・VerticalGradient・FourCornersGradient
enableAutoSizingboolfalse
enableCullingboolfalse
enableKerningbooltrue
enableVertexGradientboolfalse
enableWordWrappingbooltrue
enabledbooltrue
extraPaddingboolfalse
fontAssetTMP_FontAssetA default asset
fontColorGradient.bottomLeftColor#FFFFFF
fontColorGradient.bottomRightColor#FFFFFF
fontColorGradient.topLeftColor#FFFFFF
fontColorGradient.topRightColor#FFFFFF
fontMaterialMaterialNone
fontMaterialsList (Material)EmptyA path to an asset
fontSharedMaterialMaterialA default asset
fontSharedMaterialsList (Material)EmptyA path to an asset
fontSizefloat36
fontSizeBasefloat36
fontSizeMaxfloat72
fontSizeMinfloat18
fontStyleEnum (combinable)NormalNormal・Bold・Italic・Underline・LowerCase・UpperCase・SmallCaps・Strikethrough・Superscript・Subscript・Highlight
fontWeightEnumerationsRegularThin・ExtraLight・Light・Regular・Medium・SemiBold・Bold・Heavy・Black
geometrySortingOrderEnumerationsNormalNormal・Reverse
hasFontAssetChangedboolfalse
horizontalAlignmentEnumerationsLeftLeft・Center・Right・Justified・Flush・Geometry
horizontalMappingEnumerationsCharacterCharacter・Line・Paragraph・MatchAspect
isOrthographicbooltrue
isRightToLeftTextboolfalse
isTextObjectScaleStaticboolfalse
isUsingLegacyAnimationComponentboolfalse
isVolumetricTextboolfalse
lineSpacingfloat0
lineSpacingAdjustmentfloat0
linkedTextComponentTMP_TextNoneA path to an object in the same prefab
mappingUvLineOffsetfloat0
marginVector40 0 0 0
maskOffsetVector40 0 0 0
maskablebooltrue
materialMaterialNone
onCullStateChangedUnityEventNone
overflowModeEnumerationsOverflowOverflow・Ellipsis・Masking・Truncate・ScrollRect・Page・Linked
overrideColorTagsboolfalse
pageToDisplayint1
paragraphSpacingfloat0
parentLinkedComponentTMP_TextNoneA path to an object in the same prefab
parseCtrlCharactersbooltrue
raycastPaddingVector40 0 0 0
raycastTargetbooltrue
richTextbooltrue
spriteAssetTMP_SpriteAssetNone
styleSheetTMP_StyleSheetNone
textstringEmpty
textAlignmentEnumerationsConvertedTopLeft・Top・TopRight・TopJustified・TopFlush・TopGeoAligned・Left・Center・Right・Justified・Flush・CenterGeoAligned・BottomLeft・Bottom・BottomRight・BottomJustified・BottomFlush・BottomGeoAligned・BaselineLeft・Baseline・BaselineRight・BaselineJustified・BaselineFlush・BaselineGeoAligned・MidlineLeft・Midline・MidlineRight・MidlineJustified・MidlineFlush・MidlineGeoAligned・CaplineLeft・Capline・CaplineRight・CaplineJustified・CaplineFlush・CaplineGeoAligned・Converted
textStyleHashCodeint0
tintAllSpritesboolfalse
useMaxVisibleDescenderbooltrue
vertexBufferAutoSizeReductionboolfalse
verticalAlignmentEnumerationsTopTop・Middle・Bottom・Baseline・Geometry・Capline
verticalMappingEnumerationsCharacterCharacter・Line・Paragraph・MatchAspect
wordSpacingfloat0
wordWrappingRatiosfloat0.4