MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

InteractableColorTheme does not support TextMeshPro

Open killerantz opened this issue 7 years ago • 1 comments

Describe the bug

InteractableColorTheme supports coloring UI Text and TextMesh components, but does not include support for coloring TextMeshPro objects.

To reproduce

  1. Create an empty with a collider and add the Interactable component.
  2. Create a TextMeshPro object
  3. Add the TextMeshPro object as a profile target on the Interactable
  4. Add a theme that effects color, like InteractableColorTheme or ScaleOffsetColorTheme.
  5. 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

image

killerantz avatar May 24 '19 00:05 killerantz

MERGED

cre8ivepark avatar Jun 13 '19 22:06 cre8ivepark