📅  最后修改于: 2022-03-11 14:49:15.932000             🧑  作者: Mango
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;