Thanks this script works! Also, I've just found another solution:
(GameObject.Find("myTexture1").getComponent(GUITexture)as GUITexture).enable = false;
↧