Class TMP_SubMeshUI
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
[ExecuteAlways]
[RequireComponent(typeof(CanvasRenderer))]
public class TMP_SubMeshUI : MaskableGraphic, ICanvasElement, IClippable, IMaskable, IMaterialModifier
Properties
Name | Description |
---|---|
fallbackMaterial | |
fallbackSourceMaterial | The source material used by the fallback font |
fontAsset | The TMP Font Asset assigned to this sub text object. |
isDefaultMaterial | Is the text object using the default font asset material. |
mainTexture | |
material | The material to be assigned to this object. Returns an instance of the material. |
materialForRendering | Get the material that will be used for rendering. |
mesh | The Mesh of this text sub object. |
padding | Padding value resulting for the property settings on the material. |
sharedMaterial | The material to be assigned to this text object. |
spriteAsset | The TMP Sprite Asset assigned to this sub text object. |
textComponent | Reference to the parent Text Component. |
Methods
Name | Description |
---|---|
AddSubTextObject(TextMeshProUGUI, MaterialReference) | Function to add a new sub text object. |
Cull(Rect, bool) | Override Cull function as this is handled by the parent text object. |
GetModifiedMaterial(Material) | Function returning the modified material for masking if necessary. |
GetPaddingForMaterial() | Function called when the padding value for the material needs to be re-calculated. |
GetPaddingForMaterial(Material) | Function called when the padding value for the material needs to be re-calculated. |
OnDestroy() | |
OnDisable() | |
OnEnable() | |
OnTransformParentChanged() | |
Rebuild(CanvasUpdate) | |
RecalculateClipping() | Method called when the state of a parent changes. |
RefreshMaterial() | Function to update the material from the parent text object. |
SetAllDirty() | |
SetLayoutDirty() | |
SetMaterialDirty() | |
SetPivotDirty() | |
SetVerticesDirty() | |
UpdateGeometry() | |
UpdateMaterial() | |
UpdateMeshPadding(bool, bool) |