InteractableColorTheme.TryGetTextColor(ThemeStateProperty, Color) Method

Definition

Try to get a color from UI Text if no color is found, a text component does not exist on this object

protected:
 bool TryGetTextColor(Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, [Runtime::InteropServices::Out] UnityEngine::Color % color);
protected bool TryGetTextColor (Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty property, out UnityEngine.Color color);
member this.TryGetTextColor : Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty * Color -> bool
Protected Function TryGetTextColor (property As ThemeStateProperty, ByRef color As Color) As Boolean

Parameters

color
UnityEngine.Color

Color to try to get, returns white if no Text component found

Returns

true if successfully get color on Text

Applies to