Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Can you change the tint on the submesh material?

Discussion in 'UGUI & TextMesh Pro' started by ScottySR, Apr 22, 2024.

  1. ScottySR

    ScottySR

    Joined:
    Sep 29, 2018
    Posts:
    49
    When you use the
    <sprite>
    tag, it seems to use a
    TMP_SubMeshUI
    class. I need to change the tint on the sprite to grey out unavailable option, but I have not figured out how to do that. Changing the
    color
    variable (inherited from
    MaskableGraphic
    class), it doesn't actually change the color. I've also tried to change the material color directly, but that doesn't seem to work either. Is changing the color even possible?