Class MaterialReferenceManager
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
public class MaterialReferenceManager
Properties
| Name | Description |
|---|---|
| instance | Get a singleton instance of the registry |
Methods
| Name | Description |
|---|---|
| AddColorGradientPreset(int, TMP_ColorGradient) | Add new Color Gradient Preset to dictionary. |
| AddFontAsset(TMP_FontAsset) | Add new font asset reference to dictionary. |
| AddFontMaterial(int, Material) | Add new Material reference to dictionary. |
| AddSpriteAsset(int, TMP_SpriteAsset) | Add new Sprite Asset to dictionary. |
| AddSpriteAsset(TMP_SpriteAsset) | Add new Sprite Asset to dictionary. |
| Contains(TMP_FontAsset) | Function to check if the font asset is already referenced. |
| Contains(TMP_SpriteAsset) | Function to check if the sprite asset is already referenced. |
| TryGetColorGradientPreset(int, out TMP_ColorGradient) | Function returning the Color Gradient Preset corresponding to the provided hash code. |
| TryGetFontAsset(int, out TMP_FontAsset) | Function returning the Font Asset corresponding to the provided hash code. |
| TryGetMaterial(int, out Material) | Function returning the Font Material corresponding to the provided hash code. |
| TryGetSpriteAsset(int, out TMP_SpriteAsset) | Function returning the Sprite Asset corresponding to the provided hash code. |