MixedRealityToolkit-Unity
MixedRealityToolkit-Unity copied to clipboard
InteractableColorTheme does not support TextMeshPro
Describe the bug
InteractableColorTheme supports coloring UI Text and TextMesh components, but does not include support for coloring TextMeshPro objects.
To reproduce
- Create an empty with a collider and add the Interactable component.
- Create a TextMeshPro object
- Add the TextMeshPro object as a profile target on the Interactable
- Add a theme that effects color, like InteractableColorTheme or ScaleOffsetColorTheme.
- Observe that the theme displays the shader property dropdown "_Color", but TextMeshPro does not have a _Color property. It will cause an error when running and not update any colors.
Expected behavior
The color themes should work on Text, TextMesh, TextMeshPro, TextMeshProUGUI, as well as renderers with materials.
Screenshots

MERGED