GameObject g; // 50% Transparency. g.renderer.material.color.a = 0.5f; // a is the alpha value. // 100% Transparency. g.renderer.material.color.a = 1.0f;