TextMeshPro のコンポーネントは 8 種類です。
属性は 35 個です。
| 属性 | 型 | 既定値 | 選べる値 |
|---|
alphaFadeSpeed | float | 0.15 | |
animationTriggers.disabledTrigger | string | Disabled | |
animationTriggers.highlightedTrigger | string | Highlighted | |
animationTriggers.normalTrigger | string | Normal | |
animationTriggers.pressedTrigger | string | Pressed | |
animationTriggers.selectedTrigger | string | Selected | |
captionImage | Image | なし | 同じ prefab の中の物へのパス |
captionText | TMP_Text | なし | 同じ prefab の中の物へのパス |
colors.colorMultiplier | float | 1 | |
colors.disabledColor | Color | #C8C8C880 | |
colors.fadeDuration | float | 0.1 | ≥ 0 |
colors.highlightedColor | Color | #F5F5F5 | |
colors.normalColor | Color | #FFFFFF | |
colors.pressedColor | Color | #C8C8C8 | |
colors.selectedColor | Color | #F5F5F5 | |
enabled | bool | true | |
interactable | bool | true | |
itemImage | Image | なし | 同じ prefab の中の物へのパス |
itemText | TMP_Text | なし | 同じ prefab の中の物へのパス |
navigation.mode | 列挙 | Automatic | None・Horizontal・Vertical・Automatic・Explicit |
navigation.selectOnDown | Selectable | なし | 同じ prefab の中の物へのパス |
navigation.selectOnLeft | Selectable | なし | 同じ prefab の中の物へのパス |
navigation.selectOnRight | Selectable | なし | 同じ prefab の中の物へのパス |
navigation.selectOnUp | Selectable | なし | 同じ prefab の中の物へのパス |
navigation.wrapAround | bool | false | |
onValueChanged | UnityEvent | なし | |
placeholder | Graphic | なし | 同じ prefab の中の物へのパス |
spriteState.disabledSprite | Sprite | なし | |
spriteState.highlightedSprite | Sprite | なし | |
spriteState.pressedSprite | Sprite | なし | |
spriteState.selectedSprite | Sprite | なし | |
targetGraphic | Graphic | なし | 同じ prefab の中の物へのパス |
template | RectTransform | なし | 同じ prefab の中の物へのパス |
transition | 列挙 | ColorTint | None・ColorTint・SpriteSwap・Animation |
value | int | 0 | |
子の要素 <OptionData> の属性(構造の配列) | 型 | 既定値 |
|---|
text | string | 空 |
image | Sprite のアセット | なし |
属性は 65 個です。
| 属性 | 型 | 既定値 | 選べる値 |
|---|
animationTriggers.disabledTrigger | string | Disabled | |
animationTriggers.highlightedTrigger | string | Highlighted | |
animationTriggers.normalTrigger | string | Normal | |
animationTriggers.pressedTrigger | string | Pressed | |
animationTriggers.selectedTrigger | string | Selected | |
caretBlinkRate | float | 0.85 | |
caretColor | Color | #323232 | |
caretWidth | int | 1 | |
characterLimit | int | 0 | ≥ 0 |
characterValidation | 列挙 | None | None・Digit・Integer・Decimal・Alphanumeric・Name・Regex・EmailAddress・CustomValidator |
colors.colorMultiplier | float | 1 | |
colors.disabledColor | Color | #C8C8C880 | |
colors.fadeDuration | float | 0.1 | ≥ 0 |
colors.highlightedColor | Color | #F5F5F5 | |
colors.normalColor | Color | #FFFFFF | |
colors.pressedColor | Color | #C8C8C8 | |
colors.selectedColor | Color | #F5F5F5 | |
contentType | 列挙 | Standard | Standard・Autocorrected・IntegerNumber・DecimalNumber・Alphanumeric・Name・EmailAddress・Password・Pin・Custom |
customCaretColor | bool | false | |
enabled | bool | true | |
globalFontAsset | TMP_FontAsset | なし | |
globalPointSize | float | 14 | |
inputType | 列挙 | Standard | Standard・AutoCorrect・Password |
interactable | bool | true | |
isRichTextEditingAllowed | bool | false | |
keyboardType | 列挙 | Default | Default・ASCIICapable・NumbersAndPunctuation・URL・NumberPad・PhonePad・NamePhonePad・EmailAddress・NintendoNetworkAccount・Social・Search・DecimalPad・OneTimeCode |
layoutGroup | LayoutGroup | なし | 同じ prefab の中の物へのパス |
lineLimit | int | 0 | |
lineType | 列挙 | SingleLine | SingleLine・MultiLineSubmit・MultiLineNewline |
navigation.mode | 列挙 | Automatic | None・Horizontal・Vertical・Automatic・Explicit |
navigation.selectOnDown | Selectable | なし | 同じ prefab の中の物へのパス |
navigation.selectOnLeft | Selectable | なし | 同じ prefab の中の物へのパス |
navigation.selectOnRight | Selectable | なし | 同じ prefab の中の物へのパス |
navigation.selectOnUp | Selectable | なし | 同じ prefab の中の物へのパス |
navigation.wrapAround | bool | false | |
onDeselect | UnityEvent | なし | |
onEndEdit | UnityEvent | なし | |
onEndTextSelection | UnityEvent | なし | |
onFocusSelectAll | bool | true | |
onSelect | UnityEvent | なし | |
onSubmit | UnityEvent | なし | |
onTextSelection | UnityEvent | なし | |
onTouchScreenKeyboardStatusChanged | UnityEvent | なし | |
onValueChanged | UnityEvent | なし | |
placeholder | Graphic | なし | 同じ prefab の中の物へのパス |
readOnly | bool | false | |
regexValue | string | 空 | |
resetOnDeActivation | bool | true | |
restoreOriginalTextOnEscape | bool | true | |
richText | bool | true | |
scrollSensitivity | float | 1 | |
selectionColor | Color | #A8CEFFC0 | |
shouldHideMobileInput | bool | false | |
shouldHideSoftKeyboard | bool | false | |
spriteState.disabledSprite | Sprite | なし | |
spriteState.highlightedSprite | Sprite | なし | |
spriteState.pressedSprite | Sprite | なし | |
spriteState.selectedSprite | Sprite | なし | |
targetGraphic | Graphic | なし | 同じ prefab の中の物へのパス |
text | string | 空 | |
textComponent | TMP_Text | なし | 同じ prefab の中の物へのパス |
textViewport | RectTransform | なし | 同じ prefab の中の物へのパス |
transition | 列挙 | ColorTint | None・ColorTint・SpriteSwap・Animation |
verticalScrollbar | Scrollbar | なし | 同じ prefab の中の物へのパス |
verticalScrollbarEventHandler | TMP_ScrollbarEventHandler | なし | 同じ prefab の中の物へのパス |
属性は 2 個です。
| 属性 | 型 | 既定値 | 選べる値 |
|---|
enabled | bool | true | |
isSelected | bool | false | |
属性は 7 個です。
| 属性 | 型 | 既定値 | 選べる値 |
|---|
color | Color | #FFFFFF | |
enabled | bool | true | |
maskable | bool | true | |
material | Material | なし | |
onCullStateChanged | UnityEvent | なし | |
raycastPadding | Vector4 | 0 0 0 0 | |
raycastTarget | bool | true | |
属性は 1 個です。
| 属性 | 型 | 既定値 | 選べる値 |
|---|
enabled | bool | true | |
属性は 5 個です。
| 属性 | 型 | 既定値 | 選べる値 |
|---|
anchorPosition | 列挙 | Middle | TopLeft・Top・TopRight・Left・Middle・Right・BottomLeft・Bottom・BottomRight・Custom |
enabled | bool | true | |
margins | Vector4 | 0 0 0 0 | |
pivot | Vector2 | 0 0 | |
rect | Rect | 0 0 0 0 | |
属性は 71 個です。
| 属性 | 型 | 既定値 | 選べる値 |
|---|
_SortingLayer | int | 0 | |
characterSpacing | float | 0 | |
characterWidthAdjustment | float | 0 | |
checkPaddingRequired | bool | false | |
color | Color | #FFFFFF | |
colorGradientPreset | TMP_ColorGradient | なし | |
colorMode | 列挙 | FourCornersGradient | Single・HorizontalGradient・VerticalGradient・FourCornersGradient |
enableAutoSizing | bool | false | |
enableCulling | bool | false | |
enableKerning | bool | true | |
enableVertexGradient | bool | false | |
enableWordWrapping | bool | true | |
enabled | bool | true | |
extraPadding | bool | false | |
fontAsset | TMP_FontAsset | 既定のアセット | |
fontColorGradient.bottomLeft | Color | #FFFFFF | |
fontColorGradient.bottomRight | Color | #FFFFFF | |
fontColorGradient.topLeft | Color | #FFFFFF | |
fontColorGradient.topRight | Color | #FFFFFF | |
fontMaterial | Material | なし | |
fontMaterials | 配列(Material) | 空 | アセットへのパス |
fontSharedMaterial | Material | 既定のアセット | |
fontSharedMaterials | 配列(Material) | 空 | アセットへのパス |
fontSize | float | 36 | |
fontSizeBase | float | 36 | |
fontSizeMax | float | 72 | |
fontSizeMin | float | 18 | |
fontStyle | 列挙(組み合わせ) | Normal | Normal・Bold・Italic・Underline・LowerCase・UpperCase・SmallCaps・Strikethrough・Superscript・Subscript・Highlight |
fontWeight | 列挙 | Regular | Thin・ExtraLight・Light・Regular・Medium・SemiBold・Bold・Heavy・Black |
geometrySortingOrder | 列挙 | Normal | Normal・Reverse |
hasFontAssetChanged | bool | false | |
horizontalAlignment | 列挙 | Left | Left・Center・Right・Justified・Flush・Geometry |
horizontalMapping | 列挙 | Character | Character・Line・Paragraph・MatchAspect |
isOrthographic | bool | false | |
isRightToLeftText | bool | false | |
isTextObjectScaleStatic | bool | false | |
isUsingLegacyAnimationComponent | bool | false | |
isVolumetricText | bool | false | |
lineSpacing | float | 0 | |
lineSpacingAdjustment | float | 0 | |
linkedTextComponent | TMP_Text | なし | 同じ prefab の中の物へのパス |
mappingUvLineOffset | float | 0 | |
margin | Vector4 | 0 0 0 0 | |
maskType | 列挙 | MaskOff | MaskOff・MaskHard・MaskSoft |
maskable | bool | true | |
material | Material | なし | |
onCullStateChanged | UnityEvent | なし | |
overflowMode | 列挙 | Overflow | Overflow・Ellipsis・Masking・Truncate・ScrollRect・Page・Linked |
overrideColorTags | bool | false | |
pageToDisplay | int | 1 | |
paragraphSpacing | float | 0 | |
parentLinkedComponent | TMP_Text | なし | 同じ prefab の中の物へのパス |
parseCtrlCharacters | bool | true | |
raycastPadding | Vector4 | 0 0 0 0 | |
raycastTarget | bool | true | |
renderer | Renderer | . | 同じ prefab の中の物へのパス |
richText | bool | true | |
sortingLayerID | int | 0 | |
sortingOrder | int | 0 | |
spriteAsset | TMP_SpriteAsset | なし | |
styleSheet | TMP_StyleSheet | なし | |
text | string | 空 | |
textAlignment | 列挙 | Converted | TopLeft・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 |
textStyleHashCode | int | 0 | |
tintAllSprites | bool | false | |
useMaxVisibleDescender | bool | true | |
vertexBufferAutoSizeReduction | bool | false | |
verticalAlignment | 列挙 | Top | Top・Middle・Bottom・Baseline・Geometry・Capline |
verticalMapping | 列挙 | Character | Character・Line・Paragraph・MatchAspect |
wordSpacing | float | 0 | |
wordWrappingRatios | float | 0.4 | |
属性は 68 個です。
| 属性 | 型 | 既定値 | 選べる値 |
|---|
baseMaterial | Material | なし | |
characterSpacing | float | 0 | |
characterWidthAdjustment | float | 0 | |
checkPaddingRequired | bool | false | |
color | Color | #FFFFFF | |
colorGradientPreset | TMP_ColorGradient | なし | |
colorMode | 列挙 | FourCornersGradient | Single・HorizontalGradient・VerticalGradient・FourCornersGradient |
enableAutoSizing | bool | false | |
enableCulling | bool | false | |
enableKerning | bool | true | |
enableVertexGradient | bool | false | |
enableWordWrapping | bool | true | |
enabled | bool | true | |
extraPadding | bool | false | |
fontAsset | TMP_FontAsset | 既定のアセット | |
fontColorGradient.bottomLeft | Color | #FFFFFF | |
fontColorGradient.bottomRight | Color | #FFFFFF | |
fontColorGradient.topLeft | Color | #FFFFFF | |
fontColorGradient.topRight | Color | #FFFFFF | |
fontMaterial | Material | なし | |
fontMaterials | 配列(Material) | 空 | アセットへのパス |
fontSharedMaterial | Material | 既定のアセット | |
fontSharedMaterials | 配列(Material) | 空 | アセットへのパス |
fontSize | float | 36 | |
fontSizeBase | float | 36 | |
fontSizeMax | float | 72 | |
fontSizeMin | float | 18 | |
fontStyle | 列挙(組み合わせ) | Normal | Normal・Bold・Italic・Underline・LowerCase・UpperCase・SmallCaps・Strikethrough・Superscript・Subscript・Highlight |
fontWeight | 列挙 | Regular | Thin・ExtraLight・Light・Regular・Medium・SemiBold・Bold・Heavy・Black |
geometrySortingOrder | 列挙 | Normal | Normal・Reverse |
hasFontAssetChanged | bool | false | |
horizontalAlignment | 列挙 | Left | Left・Center・Right・Justified・Flush・Geometry |
horizontalMapping | 列挙 | Character | Character・Line・Paragraph・MatchAspect |
isOrthographic | bool | true | |
isRightToLeftText | bool | false | |
isTextObjectScaleStatic | bool | false | |
isUsingLegacyAnimationComponent | bool | false | |
isVolumetricText | bool | false | |
lineSpacing | float | 0 | |
lineSpacingAdjustment | float | 0 | |
linkedTextComponent | TMP_Text | なし | 同じ prefab の中の物へのパス |
mappingUvLineOffset | float | 0 | |
margin | Vector4 | 0 0 0 0 | |
maskOffset | Vector4 | 0 0 0 0 | |
maskable | bool | true | |
material | Material | なし | |
onCullStateChanged | UnityEvent | なし | |
overflowMode | 列挙 | Overflow | Overflow・Ellipsis・Masking・Truncate・ScrollRect・Page・Linked |
overrideColorTags | bool | false | |
pageToDisplay | int | 1 | |
paragraphSpacing | float | 0 | |
parentLinkedComponent | TMP_Text | なし | 同じ prefab の中の物へのパス |
parseCtrlCharacters | bool | true | |
raycastPadding | Vector4 | 0 0 0 0 | |
raycastTarget | bool | true | |
richText | bool | true | |
spriteAsset | TMP_SpriteAsset | なし | |
styleSheet | TMP_StyleSheet | なし | |
text | string | 空 | |
textAlignment | 列挙 | Converted | TopLeft・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 |
textStyleHashCode | int | 0 | |
tintAllSprites | bool | false | |
useMaxVisibleDescender | bool | true | |
vertexBufferAutoSizeReduction | bool | false | |
verticalAlignment | 列挙 | Top | Top・Middle・Bottom・Baseline・Geometry・Capline |
verticalMapping | 列挙 | Character | Character・Line・Paragraph・MatchAspect |
wordSpacing | float | 0 | |
wordWrappingRatios | float | 0.4 | |