0

How can I change the opacity when the cursor is over the text?

Like in those pictures:

opacity 100%

opacity 30%

I'm using TextMeshPro

thmspl
  • 2,437
  • 3
  • 22
  • 48
Brze
  • 525
  • 1
  • 5
  • 8
  • 1
    If you use buttons, you can change the buttons tint when it's being hovered over. – Wzrd Dec 18 '19 at 16:53

1 Answers1

1

By using face color's alpha property

                                //   R    G   B   A
textmeshPro.faceColor = new Color32(255, 128, 0, 255);
Jax297
  • 617
  • 1
  • 6
  • 8