Search Unity

Instantiated UI text color mixes with objects behind it

Discussion in 'UGUI & TextMesh Pro' started by Julian-S, Apr 9, 2015.

  1. Julian-S

    Julian-S

    Joined:
    May 31, 2013
    Posts:
    73
    So I am instantiating a text UI component at runtime and then parenting it to the canvas in order to display damage text in my game. That all is working fine except the color of the text seems to be mixing with the objects behind it on screen.

    For example if I set the text to green and behind the text on screen is a game object that is a dark brown color I can hardly see the green text; it basically becomes brown.
    I want the text to be whatever color I set it to, regardless of what is behind it on screen.

    Posting on here as my phone is unable to post on unity answers.

    Any help would be appreciated, thanks.