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 |
---|---|
fallback |
|
fallback |
The source material used by the fallback font |
font |
The TMP Font Asset assigned to this sub text object. |
is |
Is the text object using the default font asset material. |
main |
|
material | The material to be assigned to this object. Returns an instance of the material. |
material |
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. |
shared |
The material to be assigned to this text object. |
sprite |
The TMP Sprite Asset assigned to this sub text object. |
text |
Reference to the parent Text Component. |
Methods
Name | Description |
---|---|
Add |
Function to add a new sub text object. |
Cull(Rect, bool) | Override Cull function as this is handled by the parent text object. |
Get |
Function returning the modified material for masking if necessary. |
Get |
Function called when the padding value for the material needs to be re-calculated. |
Get |
Function called when the padding value for the material needs to be re-calculated. |
On |
|
On |
|
On |
|
On |
|
Rebuild(Canvas |
|
Recalculate |
Method called when the state of a parent changes. |
Refresh |
Function to update the material from the parent text object. |
Set |
|
Set |
|
Set |
|
Set |
|
Set |
|
Update |
|
Update |
|
Update |