Class TMP_SubMesh
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
[RequireComponent(typeof(MeshRenderer))]
[ExecuteAlways]
public class TMP_SubMesh : MonoBehaviour
Properties
Name | Description |
---|---|
fallbackMaterial | The fallback material created from the properties of the fallback source material. |
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. |
material | The material to be assigned to this object. Returns an instance of the material. |
mesh | The Mesh of this text sub object. |
meshFilter | The MeshFilter of this text sub object. |
padding | Padding value resulting for the property settings on the material. |
renderer | The Mesh Renderer of this text sub object. |
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(TextMeshPro, MaterialReference) | |
DestroySelf() | |
GetPaddingForMaterial() | Function called when the padding value for the material needs to be re-calculated. |
SetMaterialDirty() | |
SetVerticesDirty() | |
UpdateMaterial() | |
UpdateMeshPadding(bool, bool) | Function to update the padding values of the object. |