4.6 GUI BUG REPORT

When you have multiple text gameObjects on the screen, if you change the material via script, or any functionality via script, it effects every text object in the scene.

If via script I change just the text of the textObject i want to change…it works perfect…but if i change the material, it effects all of them. Also, if i fade one textObject, they all fade.

so yeah…

What code are you using exactly? TextMesh.color ?

No,

private Text _txt;

in void start i’m doing:

_txt = getcomponent()

_txt.text = “Hey what’s up”;
_txt.material.color = Color.red;

The changing of the text only effects this one text object, but when i change the color, all of the text objects turn red.