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 | Properties | List of all members
TMPro.MaterialReferenceManager Class Reference

Public Member Functions

bool Contains (TMP_FontAsset font)
 Add new material reference and return the index of this new reference in the materialReferences array. More...
 
bool Contains (TMP_SpriteAsset sprite)
 Function to check if the sprite asset is already referenced. More...
 

Static Public Member Functions

static void AddColorGradientPreset (int hashCode, TMP_ColorGradient spriteAsset)
 Add new Color Gradient Preset to dictionary. More...
 
static void AddFontAsset (TMP_FontAsset fontAsset)
 Add new font asset reference to dictionary. More...
 
static void AddFontMaterial (int hashCode, Material material)
 Add new Material reference to dictionary. More...
 
static void AddSpriteAsset (TMP_SpriteAsset spriteAsset)
 Add new Sprite Asset to dictionary. More...
 
static void AddSpriteAsset (int hashCode, TMP_SpriteAsset spriteAsset)
 Add new Sprite Asset to dictionary. More...
 
static bool TryGetColorGradientPreset (int hashCode, out TMP_ColorGradient gradientPreset)
 Function returning the Color Gradient Preset corresponding to the provided hash code. More...
 
static bool TryGetFontAsset (int hashCode, out TMP_FontAsset fontAsset)
 Function returning the Font Asset corresponding to the provided hash code. More...
 
static bool TryGetMaterial (int hashCode, out Material material)
 Function returning the Font Material corresponding to the provided hash code. More...
 
static bool TryGetSpriteAsset (int hashCode, out TMP_SpriteAsset spriteAsset)
 Function returning the Sprite Asset corresponding to the provided hash code. More...
 

Properties

static MaterialReferenceManager instance [get]
 Get a singleton instance of the registry More...
 

Member Function Documentation

static void TMPro.MaterialReferenceManager.AddColorGradientPreset ( int  hashCode,
TMP_ColorGradient  spriteAsset 
)
inlinestatic

Add new Color Gradient Preset to dictionary.

Parameters
hashCode
spriteAsset
static void TMPro.MaterialReferenceManager.AddFontAsset ( TMP_FontAsset  fontAsset)
inlinestatic

Add new font asset reference to dictionary.

Parameters
fontAsset
static void TMPro.MaterialReferenceManager.AddFontMaterial ( int  hashCode,
Material  material 
)
inlinestatic

Add new Material reference to dictionary.

Parameters
hashCode
material
static void TMPro.MaterialReferenceManager.AddSpriteAsset ( TMP_SpriteAsset  spriteAsset)
inlinestatic

Add new Sprite Asset to dictionary.

Parameters
hashCode
spriteAsset
static void TMPro.MaterialReferenceManager.AddSpriteAsset ( int  hashCode,
TMP_SpriteAsset  spriteAsset 
)
inlinestatic

Add new Sprite Asset to dictionary.

Parameters
hashCode
spriteAsset
bool TMPro.MaterialReferenceManager.Contains ( TMP_FontAsset  font)
inline

Add new material reference and return the index of this new reference in the materialReferences array.

Parameters
material
materialHashCode
fontAsset

Add new material reference and return the index of this new reference in the materialReferences array.

Parameters
material
materialHashCode
spriteAsset
Returns

Function to check if the font asset is already referenced.

Parameters
font
Returns
bool TMPro.MaterialReferenceManager.Contains ( TMP_SpriteAsset  sprite)
inline

Function to check if the sprite asset is already referenced.

Parameters
font
Returns
static bool TMPro.MaterialReferenceManager.TryGetColorGradientPreset ( int  hashCode,
out TMP_ColorGradient  gradientPreset 
)
inlinestatic

Function returning the Color Gradient Preset corresponding to the provided hash code.

Parameters
hashCode
gradientPreset
Returns
static bool TMPro.MaterialReferenceManager.TryGetFontAsset ( int  hashCode,
out TMP_FontAsset  fontAsset 
)
inlinestatic

Function returning the Font Asset corresponding to the provided hash code.

Parameters
hashCode
fontAsset
Returns
static bool TMPro.MaterialReferenceManager.TryGetMaterial ( int  hashCode,
out Material  material 
)
inlinestatic

Function returning the Font Material corresponding to the provided hash code.

Parameters
hashCode
material
Returns
static bool TMPro.MaterialReferenceManager.TryGetSpriteAsset ( int  hashCode,
out TMP_SpriteAsset  spriteAsset 
)
inlinestatic

Function returning the Sprite Asset corresponding to the provided hash code.

Parameters
hashCode
spriteAsset
Returns

Property Documentation

MaterialReferenceManager TMPro.MaterialReferenceManager.instance
staticget

Get a singleton instance of the registry


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