Class TMP_StyleSheet
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
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()