Bearbeiten

Freigeben über


ThemeDefinition Struct

Definition

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
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