Class TMP_StyleSheet
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
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()