ThemeDefinition Struct

Definition

Defines configuration properties and settings to use when initializing a class extending InteractableThemeBase

C++
public value class ThemeDefinition : UnityEngine::ISerializationCallbackReceiver
Inheritance
ThemeDefinition
Attributes
Implements
UnityEngine.ISerializationCallbackReceiver

Properties

CustomProperties

List of single-value properties defined for the entire Theme engine regardless of the current state

Easing

Object to configure easing between values. Type of Theme Engine, as defined by the ThemeType property, must have IsEasingSupported set to true

StateProperties

List of properties with values defined per state index (Example list of colors for different states)

ThemeType

Defines the type of Theme to associate with this definition. Type must be a class that extends InteractableThemeBase

Methods

GetDefaultThemeDefinition(Type)

Utility function to generate the default ThemeDefinition configuration for the provided type of Theme engine

GetDefaultThemeDefinition<T>()

Utility function to generate the default ThemeDefinition configuration for the provided type of Theme engine

Explicit Interface Implementations

ISerializationCallbackReceiver.OnAfterDeserialize() UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize
ISerializationCallbackReceiver.OnBeforeSerialize() UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0