Class TMP_StyleSheet
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
[ExcludeFromPreset]
public class TMP_StyleSheet : ScriptableObject
Methods
GetStyle(int)
Get the Style for the given hash code value.
Declaration
public TMP_Style GetStyle(int hashCode)
Parameters
Type | Name | Description |
---|---|---|
int | hashCode | Hash code of the style. |
Returns
Type | Description |
---|---|
TMP_Style | The style matching the hash code. |
GetStyle(string)
Get the Style for the given name.
Declaration
public TMP_Style GetStyle(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the style. |
Returns
Type | Description |
---|---|
TMP_Style | The style if found. |
RefreshStyles()
Function to refresh the Style Dictionary.
Declaration
public void RefreshStyles()