Search Unity

TextMesh Pro [SOLVED]Alpha at Zero

Discussion in 'UGUI & TextMesh Pro' started by renman3000, Feb 6, 2018.

  1. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    Hi,
    My game uses DOTween to tween the FaceColor of a TextMeshPro component. Generally the alpha value is the only change I make.

    This works fine in the editor. However in just building out to iOS for the first time it appears all relevant texts are not seen.

    At first glance I am assuming there is an issue with the alpha.

    Any ideas?

    Thanks
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Are several text objects sharing the same material where you change the FaceColor? if so the color changes would affect all text objects which share this material.

    In terms of the handling in the editor vs. iOS build, the code path / handling is that same.

    Are you setting the alpha to zero at anytime?
     
  3. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697

    Hi,
    Thank you for your response good sir. I have eliminated the issue.

    It was either a)
    On a single instance of at TextMeshPro component, in a script, I had set its faceColor to (0,0,0,0).

    or b)
    I had adjusted the color value not the faceColor value on an instance.



    Thank you
     
    Stephan_B likes this.