Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Any way to programmatically change SpriteRenderer color, not the Sprites-Default tint?

$
0
0
Hi everyone, I would like to change the SpriteRenderers color at runtime via code OR I would be happy with changing the materials tint in the editor. My main goal is to have a color field that I can set in the editor manually and via code, but the problem is that if I set the color of the sprite renderer to gray in the editor, then I set the material color (aka the Tint), end up getting my desired color multiplied by grey. I would be fine with setting the SpriteRenderers color to white and...

Any way to programmatically change SpriteRenderer color, not the Sprites-Default tint?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>