Bearbeiten

InteractableColorTheme.TrySetTextMeshProColor Method

Definition

Try to set color on TextMeshPro If false, no TextMeshPro was found

protected:
 bool TrySetTextMeshProColor(UnityEngine::Color color, Microsoft::MixedReality::Toolkit::UI::ThemeStateProperty ^ property, int index, float percentage);
protected bool TrySetTextMeshProColor (UnityEngine.Color color, Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty property, int index, float percentage);
member this.TrySetTextMeshProColor : UnityEngine.Color * Microsoft.MixedReality.Toolkit.UI.ThemeStateProperty * int * single -> bool
Protected Function TrySetTextMeshProColor (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

true if successfully set color on TextMeshPro

Applies to