Class TMP_Settings
Scaling options for the sprites
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
[Serializable]
[ExcludeFromPreset]
public class TMP_Settings : ScriptableObject
Properties
| Name | Description |
|---|---|
| autoSizeTextContainer | Set the size of the text container of newly created text objects to match the size of the text. |
| defaultColorGradientPresetsPath | The relative path to a Resources folder in the project that contains Color Gradient Presets. |
| defaultFontAsset | Returns the Default Font Asset to be used by newly created text objects. |
| defaultFontAssetPath | The relative path to a Resources folder in the project. |
| defaultFontSize | The Default Point Size of newly created text objects. |
| defaultSpriteAsset | The Default Sprite Asset to be used by default. |
| defaultSpriteAssetPath | The relative path to a Resources folder in the project. |
| defaultStyleSheet | The Default Style Sheet used by the text objects. |
| defaultTextAutoSizingMaxRatio | The multiplier used to computer the default Max point size when Text Auto Sizing is used. |
| defaultTextAutoSizingMinRatio | The multiplier used to computer the default Min point size when Text Auto Sizing is used. |
| defaultTextMeshProTextContainerSize | The Default Size of the Text Container of a TextMeshPro object. |
| defaultTextMeshProUITextContainerSize | The Default Width of the Text Container of a TextMeshProUI object. |
| enableEmojiSupport | Determines if Emoji support is enabled in the Input Field TouchScreenKeyboard. |
| enableExtraPadding | Controls if Extra Padding is enabled on newly created text objects by default. |
| enableKerning | Controls if Kerning is enabled on newly created text objects by default. |
| enableParseEscapeCharacters | Controls if Escape Characters will be parsed in the Text Input Box on newly created text objects. |
| enableRaycastTarget | Controls if Raycast Target is enabled by default on newly created text objects. |
| enableTintAllSprites | Controls if TintAllSprites is enabled on newly created text objects by default. |
| enableWordWrapping | Controls if Word Wrapping will be enabled on newly created text objects by default. |
| fallbackFontAssets | Returns the list of Fallback Fonts defined in the TMP Settings file. |
| followingCharacters | Text file that contains the following characters used for line breaking for Asian languages. |
| getFontFeaturesAtRuntime | Determines if OpenType Font Features should be retrieved at runtime from the source font file. |
| instance | Get a singleton instance of the settings class. |
| isTextObjectScaleStatic | Disables InternalUpdate() calls when true. This can improve performance when the scale of the text object is static. |
| leadingCharacters | Text file that contains the leading characters used for line breaking for Asian languages. |
| linebreakingRules | |
| matchMaterialPreset | Controls whether or not TMP will create a matching material preset or use the default material of the fallback font asset. |
| missingCharacterSpriteUnicode | The unicode value of the sprite that will be used when the requested sprite is missing from the sprite asset and potential fallbacks. |
| missingGlyphCharacter | The character that will be used as a replacement for missing glyphs in a font asset. |
| styleSheetsResourcePath | The relative path to a Resources folder in the project that contains the TMP Style Sheets. |
| useModernHangulLineBreakingRules | Determines if Modern or Traditional line breaking rules should be used for Korean text. |
| version | Returns the release version of the product. |
| warningsDisabled | Controls the display of warning message in the console. |
Methods
| Name | Description |
|---|---|
| GetFontAsset() | Returns the Font Asset defined in the TMP Settings file. |
| GetSettings() | Returns the Sprite Asset defined in the TMP Settings file. |
| GetSpriteAsset() | Returns the Sprite Asset defined in the TMP Settings file. |
| GetStyleSheet() | Returns the Style Sheet defined in the TMP Settings file. |
| LoadDefaultSettings() | Static Function to load the TMP Settings file. |
| LoadLinebreakingRules() |