mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class ThemeInspector

    Inspector for themes, and used by Interactable

    Inheritance
    Object
    ThemeInspector
    Namespace: Microsoft.MixedReality.Toolkit.UI.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public class ThemeInspector : UnityEditor.Editor

    Fields

    states

    Declaration
    protected SerializedProperty states
    Field Value
    Type Description
    SerializedProperty

    theme

    Declaration
    protected Theme theme
    Field Value
    Type Description
    Theme

    themeDefinitions

    Declaration
    protected SerializedProperty themeDefinitions
    Field Value
    Type Description
    SerializedProperty

    themeStates

    Declaration
    protected State[] themeStates
    Field Value
    Type Description
    State[]

    Methods

    AddThemeDefinition()

    Declaration
    protected virtual void AddThemeDefinition()

    ClearHistoryCache(Int32)

    Declaration
    protected void ClearHistoryCache(int index)
    Parameters
    Type Name Description
    Int32 index

    DeleteThemeDefinition(UInt32)

    Declaration
    protected void DeleteThemeDefinition(uint index)
    Parameters
    Type Name Description
    UInt32 index

    LoadThemeDefinitionHistory(Int32, Type)

    Declaration
    protected ThemeDefinition? LoadThemeDefinitionHistory(int index, Type newDefinitionClassType)
    Parameters
    Type Name Description
    Int32 index
    Type newDefinitionClassType
    Returns
    Type Description
    Nullable<ThemeDefinition>

    OnEnable()

    Declaration
    public void OnEnable()

    OnInspectorGUI()

    Declaration
    public override void OnInspectorGUI()

    RenderDeleteButton(Int32)

    Declaration
    protected bool RenderDeleteButton(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    Boolean

    RenderStates()

    draw the states property field for assigning states Set the default state if one does not exist

    Declaration
    protected bool RenderStates()
    Returns
    Type Description
    Boolean

    RenderTheme()

    Declaration
    public virtual void RenderTheme()

    RenderThemeDefinitions()

    Declaration
    public void RenderThemeDefinitions()

    RenderValue(SerializedProperty, GUIContent, ThemePropertyTypes)

    Render a single property value

    Declaration
    public static void RenderValue(SerializedProperty item, GUIContent label, ThemePropertyTypes type)
    Parameters
    Type Name Description
    SerializedProperty item
    GUIContent label
    ThemePropertyTypes type

    SaveThemeDefinitionHistory(Int32, Type)

    Declaration
    protected void SaveThemeDefinitionHistory(int index, Type definitionClassType)
    Parameters
    Type Name Description
    Int32 index
    Type definitionClassType
    In This Article
    • Fields
      • states
      • theme
      • themeDefinitions
      • themeStates
    • Methods
      • AddThemeDefinition()
      • ClearHistoryCache(Int32)
      • DeleteThemeDefinition(UInt32)
      • LoadThemeDefinitionHistory(Int32, Type)
      • OnEnable()
      • OnInspectorGUI()
      • RenderDeleteButton(Int32)
      • RenderStates()
      • RenderTheme()
      • RenderThemeDefinitions()
      • RenderValue(SerializedProperty, GUIContent, ThemePropertyTypes)
      • SaveThemeDefinitionHistory(Int32, Type)
    Back to top Generated by DocFX