Class Theme
Theme scriptableObject for loading theme settings
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class Theme : 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>> |
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> |
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 |
ValidateDefinitions()
Validate list of ThemeDefinitions with current States object
Declaration
public void ValidateDefinitions()