Class TMP_StyleSheet | TextMesh Pro | 1.3.0
docs.unity.cn
    Show / Hide Table of Contents

    Class TMP_StyleSheet

    Inheritance
    Object
    TMP_StyleSheet
    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 © 2019 Unity Technologies
    Generated by DocFX