mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class Theme

    Theme scriptableObject for loading theme settings

    Inheritance
    Object
    Theme
    Implements
    ScriptableObject
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class Theme : ScriptableObject, ScriptableObject

    Fields

    History

    Stores historical values of different ThemeDefinition selections. Useful for editor design Each item in list corresponds to item in Definitions list property Each Dictionary keeps track of last used ThemeDefinition configuration for a given Theme type (type must extend from InteractableThemeBase)

    Declaration
    public List<Dictionary<Type, ThemeDefinition>> History
    Field Value
    Type Description
    List<Dictionary<Type, ThemeDefinition>>

    History

    Stores historical values of different ThemeDefinition selections. Useful for editor design Each item in list corresponds to item in Definitions list property Each Dictionary keeps track of last used ThemeDefinition configuration for a given Theme type (type must extend from InteractableThemeBase)

    Declaration
    public List<Dictionary<Type, ThemeDefinition>> History
    Field Value
    Type Description
    List<Dictionary<Type, ThemeDefinition>>

    Properties

    Definitions

    List of Theme Definition configurations. Each definition defines what type of Theme Engine to create and how to configure it

    Declaration
    public List<ThemeDefinition> Definitions { get; set; }
    Property Value
    Type Description
    List<ThemeDefinition>

    Definitions

    List of Theme Definition configurations. Each definition defines what type of Theme Engine to create and how to configure it

    Declaration
    public List<ThemeDefinition> Definitions { get; set; }
    Property Value
    Type Description
    List<ThemeDefinition>

    States

    Associated States object to use with this theme. Defines the states available for each Theme to utilize

    Declaration
    public States States { get; set; }
    Property Value
    Type Description
    States

    States

    Associated States object to use with this theme. Defines the states available for each Theme to utilize

    Declaration
    public States States { get; set; }
    Property Value
    Type Description
    States

    Methods

    GetStates()

    Helper function to convert States scriptableobject into an array of available State values

    Declaration
    [Obsolete("Use States.StateList instead")]
    public State[] GetStates()
    Returns
    Type Description
    State[]

    Array of available State values for currently assigned States property in this Theme

    GetStates()

    Helper function to convert States scriptableobject into an array of available State values

    Declaration
    [Obsolete("Use States.StateList instead")]
    public State[] GetStates()
    Returns
    Type Description
    State[]

    Array of available State values for currently assigned States property in this Theme

    ValidateDefinitions()

    Validate list of ThemeDefinitions with current States object

    Declaration
    public void ValidateDefinitions()

    ValidateDefinitions()

    Validate list of ThemeDefinitions with current States object

    Declaration
    public void ValidateDefinitions()

    Implements

    ScriptableObject
    In This Article
    • Fields
      • History
      • History
    • Properties
      • Definitions
      • Definitions
      • States
      • States
    • Methods
      • GetStates()
      • GetStates()
      • ValidateDefinitions()
      • ValidateDefinitions()
    • Implements
    Back to top Generated by DocFX