InteractableColorTheme.TryGetTextMeshColor(ThemeStateProperty, Color) Method

Definition

Try to get color from TextMesh If no color is found, not TextMesh on this object

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

Parameters

color
UnityEngine.Color

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

Returns

Boolean

true if successfully get color on TextMesh

Applies to