ThemeDefinition Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines configuration properties and settings to use when initializing a class extending InteractableThemeBase
public value class ThemeDefinition : UnityEngine::ISerializationCallbackReceiver
[System.Serializable]
public struct ThemeDefinition : UnityEngine.ISerializationCallbackReceiver
[<System.Serializable>]
type ThemeDefinition = struct
interface ISerializationCallbackReceiver
Public Structure ThemeDefinition
Implements ISerializationCallbackReceiver
- Inheritance
-
ThemeDefinition
- Attributes
- Implements
-
Unity
Engine. ISerialization Callback Receiver
Custom |
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 |
State |
List of properties with values defined per state index (Example list of colors for different states) |
Theme |
Defines the type of Theme to associate with this definition. Type must be a class that extends InteractableThemeBase |
Get |
Utility function to generate the default ThemeDefinition configuration for the provided type of Theme engine |
Get |
Utility function to generate the default ThemeDefinition configuration for the provided type of Theme engine |
ISerialization |
UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize |
ISerialization |
UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize |
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 |