Answers for "how to set transparency of gameobject unity"

C#
0

How to make game object transparent in unity

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;
Posted by: Guest on July-01-2021

Code answers related to "how to set transparency of gameobject unity"

C# Answers by Framework

Browse Popular Code Answers by Language