Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #game #object #transparent #unity
ADD COMMENT
Topic
Name
9+8 =