I have placed 3DText objects as part of the scene and I want a script to change the text colour once an event occurs. I know how to change a shader:
renderer.material.shader = newShaderRef;
How do I tell it to change the text color? I want it to be black and fully visible, so it’s 0’s all around. The script is assigned to the text object.
Edit:
GUIText.font.material.color
I found this for GUI text. But since my text isn’t placed in GUI (it’s an object in the 3D space), it doesn’t work…