InteractableColorTheme.TrySetTextMeshProUGUIColor Method
Definition
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.
Try to set color on TextMeshProUGUI If false, no TextMeshProUGUI was found
protected:
bool TrySetTextMeshProUGUIColor(UnityEngine::Color color, Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, int index, float percentage);
protected bool TrySetTextMeshProUGUIColor (UnityEngine.Color color, Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty property, int index, float percentage);
member this.TrySetTextMeshProUGUIColor : UnityEngine.Color * Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty * int * single -> bool
Protected Function TrySetTextMeshProUGUIColor (color As Color, property As ThemeStateProperty, index As Integer, percentage As Single) As Boolean
Parameters
- color
- UnityEngine.Color
Color to try to set
- property
- ThemeStateProperty
- index
- Int32
- percentage
- Single
Returns
true if successfully set color on TextMeshProUGUI