Search Unity

TextMesh Pro How to control gradient placement

Discussion in 'UGUI & TextMesh Pro' started by LilGames, Oct 16, 2019.

  1. LilGames

    LilGames

    Joined:
    Mar 30, 2015
    Posts:
    570
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The Gradient is done by using vertex colors. Since each character is made of a Quad which has 4 vertices, you can only set two colors for vertical or horizontal gradient.

    An alternative would be to use the full Distance Field shader with a face texture which can then be anything you want. In the image above, you would need to use two different materials.
     
    LilGames likes this.