How to make GuiText invisible?

Hello everyone, i have some guiText in my scenes. One of them is the bullet count of the Turret, but Turret is in upgrades,so if the player doesn’t buy Turret from upgrades he is not supposed to see how many bullets does it have, so the bulletcount guiText is supposed to be invisible. I tried this :

renderer.enabled=false;

but it says; there is no renderer attached to guiText gameObject but…

so is there any other way to make guiText invisible ?

GUIText doesn’t use a renderer, but you can use its property enabled to hide/show it.

GUIText myGUIText;
myGUIText.enabled = false;

Hope that helps.

==