InteractableColorTheme.TryGetTextMeshProColor 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 get color from TextMeshPro If no color is found, TextMeshPro is not on the object
protected:
bool TryGetTextMeshProColor(Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, [Runtime::InteropServices::Out] UnityEngine::Color % color);
protected bool TryGetTextMeshProColor (Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty property, out UnityEngine.Color color);
member this.TryGetTextMeshProColor : Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty * Color -> bool
Protected Function TryGetTextMeshProColor (property As ThemeStateProperty, ByRef color As Color) As Boolean
Parameters
- property
- ThemeStateProperty
- color
- UnityEngine.Color
Color to try to get, returns white if no TextMesh component found
Returns
true if successfully get color on TextMeshPro