docs.unity.cn
    Show / Hide Table of Contents

    Class TMP_StyleSheet

    Inheritance
    Object
    TMP_StyleSheet
    Namespace: TMPro
    Syntax
    public class TMP_StyleSheet : ScriptableObject

    Methods

    GetStyle(Int32)

    Get the Style for the given hash code value.

    Declaration
    public TMP_Style GetStyle(int hashCode)
    Parameters
    Type Name Description
    Int32 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()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, March 9, 2022
    Terms of use