InteractableActivateTheme.SetValue Method

Definition

Overloads

SetValue(ThemeStateProperty, ThemePropertyValue)

Instruct theme to set value for current property with ThemePropertyValue value provided

SetValue(ThemeStateProperty, Int32, Single)

Instruct theme to set value for current property with given index state and at given lerp percentage

SetValue(ThemeStateProperty, ThemePropertyValue)

Instruct theme to set value for current property with ThemePropertyValue value provided

C++
protected:
 override void SetValue(Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, Microsoft::MixedReality::Toolkit::UI::ThemePropertyValue ^ value);

Parameters

property
ThemeStateProperty

property to update value

value
ThemePropertyValue

Value for theme to set

Applies to

MRTK2 Unity 2018 2.7.0 et autres versions
Produit 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

SetValue(ThemeStateProperty, Int32, Single)

Instruct theme to set value for current property with given index state and at given lerp percentage

C++
public:
 override void SetValue(Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, int index, float percentage);

Parameters

property
ThemeStateProperty

property to update value

index
Int32

index of state to access array of values

percentage
Single

percentage transition between values

Applies to

MRTK2 Unity 2018 2.7.0 et autres versions
Produit 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