Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro How to appley color gradient to whole text instead of per character.

Discussion in 'UGUI & TextMesh Pro' started by Gunner22, Oct 5, 2022.

  1. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    53
    Can I appley the gradient to the whole text instead of the default behavior that is applying it per character and how would I do this.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Not at the present time.

    However, you can use a texture which you can assign to the face or outline of the text. Then on the text component itself, you can control the UV Mapping of this texture to either be per character, line or paragraph or the whole text.

    See this old link and scroll to the section about UV Mapping.
     
  3. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    53
    Thanks that works