Check out example codes for "unity set sprite transparency". It will help you in understanding the concepts better.

Code Example 1

// You can set the transparency together with the color:
SpriteRenderer.color = new Color(1f,1f,1f,1f);

Learn ReactJs, React Native from akashmittal.com