Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity color alpha not working

// FIRST STEP:
// Change Material Rendering Mode from Opaque to Transparent

// Using Code to change alpha value
[SerializeField] private Material myMaterial;

void Start()
{
  Color color = myMaterial.color;
  color.a = 0;
}
 
PREVIOUS NEXT
Tagged: #unity #color #alpha #working
ADD COMMENT
Topic
Name
1+2 =