InteractableColorTheme.TrySetTextColor Method

Definition

Try to set color on UI Text If false, no UI Text was found

protected:
 bool TrySetTextColor(UnityEngine::Color color, Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, int index, float percentage);
protected bool TrySetTextColor (UnityEngine.Color color, Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty property, int index, float percentage);
member this.TrySetTextColor : UnityEngine.Color * Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty * int * single -> bool
Protected Function TrySetTextColor (color As Color, property As ThemeStateProperty, index As Integer, percentage As Single) As Boolean

Parameters

color
UnityEngine.Color

Color to try to set

index
Int32
percentage
Single

Returns

Boolean

true if successfully set color on Text

Applies to