docs.unity.cn
    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.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: TMPro
    Syntax
    [Serializable]
    [ExcludeFromPreset]
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 23 April 2021