Answers for "unity gameobject color transparent"

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

C# Answers by Framework

Browse Popular Code Answers by Language