3D text scripting

I am having trouble scripting 3d text. With GUI text this kind of script works:

guiText.material.color = Color.black;

but what is the equivalent for 3d text?
Thanks

Since it’s an object instead of GUIText, you’d use the same method as with other objects.

renderer.material.color = Color.black;

–Eric

Got it. Thanks.