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

0

how to change the 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
1

change sprite color unity

sprite.color = new Color (1, 0, 0, 1);
Posted by: Guest on May-05-2021

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

Browse Popular Code Answers by Language