Answers for "how to change color of a sprite in unity"

0

how to change color of a sprite in unity

//option 1
GetComponent<spriteRenderer>().color = Color.red

//option 2
sprite.color = new Color (R, G, B, A);
Posted by: Guest on May-07-2021

Code answers related to "how to change color of a sprite in unity"

Browse Popular Code Answers by Language