We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class Theme

    Theme scriptableObject for loading theme settings

    Inheritance
    Object
    Theme
    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()
    In This Article
    Back to top Generated by DocFX