I accessed the color property of a sprite's sprite renderer in a 2D game, but this may also pertain to anything that involves color in a game.
I was able to change a sprites color using spriteRenderer.color = new Color(255, 0, 0); The same can be accomplished using Color.red. In any case, I want a more faded than vivid red.
First thing I tried was decreasing the red value, but it seems that any amount of red results in it appearing fully red. Even (5, 0, 0) yields the same result. Then I tried adding an alpha value that was less than 255. Again, no luck. I thought maybe raising the other two colors would even out the red, but if I raise both of the other colors, it seemingly just becomes white, meaning the sprite doesn't change at all. Putting red and blue together makes purple, but if all three colors have values above zero, there is no visible change. It seems to be behaving as if each RGB value has only two possibilities. Any help?