Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties | List of all members
TMPro.TMP_SubMeshUI Class Reference
Inheritance diagram for TMPro.TMP_SubMeshUI:

Public Member Functions

override void Cull (Rect clipRect, bool validRect)
 Override to Cull function of MaskableGraphic to prevent Culling. More...
 
override Material GetModifiedMaterial (Material baseMaterial)
 Function returning the modified material for masking if necessary. More...
 
float GetPaddingForMaterial ()
 Function called when the padding value for the material needs to be re-calculated. More...
 
float GetPaddingForMaterial (Material mat)
 Function called when the padding value for the material needs to be re-calculated. More...
 
override void Rebuild (CanvasUpdate update)
 
override void RecalculateClipping ()
 Method called when the state of a parent changes. More...
 
override void RecalculateMasking ()
 
void RefreshMaterial ()
 Function to update the material from the parent text object. More...
 
override void SetAllDirty ()
 
override void SetLayoutDirty ()
 
override void SetMaterialDirty ()
 
void SetPivotDirty ()
 
override void SetVerticesDirty ()
 
void UpdateMeshPadding (bool isExtraPadding, bool isUsingBold)
 

Static Public Member Functions

static TMP_SubMeshUI AddSubTextObject (TextMeshProUGUI textComponent, MaterialReference materialReference)
 Function to add a new sub text object. More...
 

Protected Member Functions

override void OnDestroy ()
 
override void OnDisable ()
 
override void OnEnable ()
 
override void OnTransformParentChanged ()
 
override void UpdateGeometry ()
 
override void UpdateMaterial ()
 

Properties

new CanvasRenderer canvasRenderer [get]
 The Mesh Renderer of this text sub object. More...
 
Material fallbackMaterial [get, set]
 
Material fallbackSourceMaterial [get, set]
 The source material used by the fallback font More...
 
TMP_FontAsset fontAsset [get, set]
 The TMP Font Asset assigned to this sub text object. More...
 
bool isDefaultMaterial [get, set]
 Is the text object using the default font asset material. More...
 
override Texture mainTexture [get]
 
override Material material [get, set]
 The material to be assigned to this object. Returns an instance of the material. More...
 
override Material materialForRendering [get]
 Get the material that will be used for rendering. More...
 
Mesh mesh [get, set]
 The Mesh of this text sub object. More...
 
float padding [get, set]
 Padding value resulting for the property settings on the material. More...
 
Material sharedMaterial [get, set]
 The material to be assigned to this text object. More...
 
TMP_SpriteAsset spriteAsset [get, set]
 The TMP Sprite Asset assigned to this sub text object. More...
 

Member Function Documentation

static TMP_SubMeshUI TMPro.TMP_SubMeshUI.AddSubTextObject ( TextMeshProUGUI  textComponent,
MaterialReference  materialReference 
)
inlinestatic

Function to add a new sub text object.

Parameters
textComponent
materialReference
Returns
override void TMPro.TMP_SubMeshUI.Cull ( Rect  clipRect,
bool  validRect 
)
inline

Override to Cull function of MaskableGraphic to prevent Culling.

Parameters
clipRect
validRect
override Material TMPro.TMP_SubMeshUI.GetModifiedMaterial ( Material  baseMaterial)
inline

Function returning the modified material for masking if necessary.

Parameters
baseMaterial
Returns
float TMPro.TMP_SubMeshUI.GetPaddingForMaterial ( )
inline

Function called when the padding value for the material needs to be re-calculated.

Returns
float TMPro.TMP_SubMeshUI.GetPaddingForMaterial ( Material  mat)
inline

Function called when the padding value for the material needs to be re-calculated.

Returns
override void TMPro.TMP_SubMeshUI.OnDestroy ( )
inlineprotected
override void TMPro.TMP_SubMeshUI.OnDisable ( )
inlineprotected
override void TMPro.TMP_SubMeshUI.OnEnable ( )
inlineprotected

override void TMPro.TMP_SubMeshUI.OnTransformParentChanged ( )
inlineprotected

override void TMPro.TMP_SubMeshUI.Rebuild ( CanvasUpdate  update)
inline

Parameters
update
override void TMPro.TMP_SubMeshUI.RecalculateClipping ( )
inline

Method called when the state of a parent changes.

override void TMPro.TMP_SubMeshUI.RecalculateMasking ( )
inline

void TMPro.TMP_SubMeshUI.RefreshMaterial ( )
inline

Function to update the material from the parent text object.

override void TMPro.TMP_SubMeshUI.SetAllDirty ( )
inline

override void TMPro.TMP_SubMeshUI.SetLayoutDirty ( )
inline

override void TMPro.TMP_SubMeshUI.SetMaterialDirty ( )
inline

void TMPro.TMP_SubMeshUI.SetPivotDirty ( )
inline

override void TMPro.TMP_SubMeshUI.SetVerticesDirty ( )
inline

override void TMPro.TMP_SubMeshUI.UpdateGeometry ( )
inlineprotected

override void TMPro.TMP_SubMeshUI.UpdateMaterial ( )
inlineprotected

void TMPro.TMP_SubMeshUI.UpdateMeshPadding ( bool  isExtraPadding,
bool  isUsingBold 
)
inline

Parameters
isExtraPadding
isBold

Property Documentation

new CanvasRenderer TMPro.TMP_SubMeshUI.canvasRenderer
get

The Mesh Renderer of this text sub object.

Material TMPro.TMP_SubMeshUI.fallbackMaterial
getset

Material TMPro.TMP_SubMeshUI.fallbackSourceMaterial
getset

The source material used by the fallback font

TMP_FontAsset TMPro.TMP_SubMeshUI.fontAsset
getset

The TMP Font Asset assigned to this sub text object.

bool TMPro.TMP_SubMeshUI.isDefaultMaterial
getset

Is the text object using the default font asset material.

override Texture TMPro.TMP_SubMeshUI.mainTexture
get

override Material TMPro.TMP_SubMeshUI.material
getset

The material to be assigned to this object. Returns an instance of the material.

override Material TMPro.TMP_SubMeshUI.materialForRendering
get

Get the material that will be used for rendering.

Mesh TMPro.TMP_SubMeshUI.mesh
getset

The Mesh of this text sub object.

float TMPro.TMP_SubMeshUI.padding
getset

Padding value resulting for the property settings on the material.

Material TMPro.TMP_SubMeshUI.sharedMaterial
getset

The material to be assigned to this text object.

TMP_SpriteAsset TMPro.TMP_SubMeshUI.spriteAsset
getset

The TMP Sprite Asset assigned to this sub text object.


The documentation for this class was generated from the following file: