docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_StyleSheet

    Inheritance
    Object
    Object
    ScriptableObject
    TMP_StyleSheet
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: TMPro
    Syntax
    [Serializable]
    public class TMP_StyleSheet : ScriptableObject

    Properties

    instance

    Get a singleton instance of the TMP_StyleSheet

    Declaration
    public static TMP_StyleSheet instance { get; }
    Property Value
    Type Description
    TMP_StyleSheet

    Methods

    GetStyle(Int32)

    Function to retrieve the Style matching the HashCode.

    Declaration
    public static TMP_Style GetStyle(int hashCode)
    Parameters
    Type Name Description
    Int32 hashCode
    Returns
    Type Description
    TMP_Style

    LoadDefaultStyleSheet()

    Static Function to load the Default Style Sheet.

    Declaration
    public static TMP_StyleSheet LoadDefaultStyleSheet()
    Returns
    Type Description
    TMP_StyleSheet

    RefreshStyles()

    Function to refresh the Style Dictionary.

    Declaration
    public static void RefreshStyles()

    UpdateStyleDictionaryKey(Int32, Int32)

    Declaration
    public void UpdateStyleDictionaryKey(int old_key, int new_key)
    Parameters
    Type Name Description
    Int32 old_key
    Int32 new_key

    UpdateStyleSheet()

    Function to update the internal reference to a newly assigned style sheet in the TMP Settings.

    Declaration
    public static void UpdateStyleSheet()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023