InteractableActivateTheme.SetValue Method
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.
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 |
Instruct theme to set value for current property with ThemePropertyValue value provided
protected:
override void SetValue(Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, Microsoft::MixedReality::Toolkit::UI::ThemePropertyValue ^ value);
protected override void SetValue (Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty property, Microsoft.MixedReality.Toolkit.UI.ThemePropertyValue value);
override this.SetValue : Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty * Microsoft.MixedReality.Toolkit.UI.ThemePropertyValue -> unit
Protected Overrides Sub SetValue (property As ThemeStateProperty, value As ThemePropertyValue)
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 |
Instruct theme to set value for current property with given index state and at given lerp percentage
public:
override void SetValue(Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, int index, float percentage);
public override void SetValue (Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty property, int index, float percentage);
override this.SetValue : Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty * int * single -> unit
Public Overrides Sub SetValue (property As ThemeStateProperty, index As Integer, percentage As Single)
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 |