How to outline Font In Unity! TextMeshPro Text

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 12

  • @ryu24242424
    @ryu24242424 9 місяців тому

    if messing with the shader / font not a possibility and the outline component still doesn't work. Adding a image child using a 9 sliced 3x3 sprite (white outline, alpha center) may be a workaround.

  • @migatocomeoscuridad
    @migatocomeoscuridad 11 місяців тому +2

    Is there no way to have the outline appear outside the text? instead of inside

    • @thecryptogym
      @thecryptogym  11 місяців тому

      Not sure what' you're talking about.

    • @migatocomeoscuridad
      @migatocomeoscuridad 11 місяців тому

      @@thecryptogym When you add an outline and increase the outline width, the outline increases in width going inside the text, so that if it has a lot of width and you have a black outline, the whole text will just look like it was colored black, but its really just a very thick outline.
      I want to know if there is a way to make the outline appear from outside the text outwards. do you know what I mean?

    • @ravenempty3562
      @ravenempty3562 9 місяців тому

      @@thecryptogym outline can be INside the text and OUTside

    • @ravenempty3562
      @ravenempty3562 9 місяців тому +3

      i found this solution:
      "You can control how the outline is applied by using Dilation. For instance, if Dilation is 0 and outline thickness is 0.1 then Outline is applied at the edge (50 / 50). If Dilation is 0.1 and Outline is 0.1, then outline is applied on the outside. If Dilation is -0.1 then outline is applied on the inside. So by combining these two properties, you can achieve any mixture of outline application." (c) Stephan_B from unity forum

    • @christophermercaldi8616
      @christophermercaldi8616 7 місяців тому

      @@ravenempty3562it's doable but the result doesn't look very smooth (if you notice the tiny details), but I guess that's the only way for now.

  • @bpdhoplite
    @bpdhoplite 8 місяців тому +6

    Not your fault but its a shame this is so garbage and theres no built in alternative, this is an inline, it is applied inside the font and also ruins the texture because it isn't smooth. An outline is meant to be outside the font which is why its starts with out and not in. No idea what the devs were smoking with this feature

    • @thecryptogym
      @thecryptogym  8 місяців тому

      That's actually a really good point. I often wondered why it looked "off". Anyways appreciate the insight and comment!

    • @Jack-hm8pu
      @Jack-hm8pu 5 місяців тому

      You got the point, outline means out, not both out and in, this design made this function useless at all

  • @HarrisonMace-dc4is
    @HarrisonMace-dc4is 5 місяців тому

    im using a custom font and the outline is really really small do you know a fix?

  • @vinigamedev4158
    @vinigamedev4158 Місяць тому

    TextMesh Pro Outline is trashed...