Search Unity

A better outline effect for text

Discussion in 'UGUI & TextMesh Pro' started by amit1532, Jun 19, 2015.

  1. amit1532

    amit1532

    Joined:
    Jul 19, 2010
    Posts:
    305
    Hello,
    ive been using the outline effect and realized there was something wierd about it..
    It seems that the outline it self was behind the other letters of the word.

    Here is an example:
    Normal Outline.PNG

    Notice the outline of the last number is behind the left letter.

    So i have created a new outline script to fix this behaviour.
    It does exactly what the normal outline does except it reorders the vertices of the text.

    Here is the outcome:
    New outline.PNG

    I have also added a boolean for precise outline (It will double the shadows)
    Feel free to use it!

    The code is pasted in this link: http://pastebin.com/9Z1D130h
     
    protopop likes this.