how to change transparency of a sprite in c# unity code example
Example: unity set sprite transparency
// You can set the transparency together with the color:
SpriteRenderer.color = new Color(1f,1f,1f,1f);
// You can set the transparency together with the color:
SpriteRenderer.color = new Color(1f,1f,1f,1f);