Redigera

InteractableColorTheme.TryGetTextMeshProUGUIColor Method

Definition

Try to get color from TextMeshProUGUI If no color is found, TextMeshProUGUI is not on the object

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

Parameters

color
UnityEngine.Color

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

Returns

true if successfully get color on TextMeshProUGUI

Applies to