- Home /
Question by
BAJARYMI · Jul 08, 2015 at 09:19 AM ·
colorfloatsprite renderer
I need to store a value that can have "f" in it, but is in a float/ string
I have this code: spriteRenderer.color = new Color(2f, 2f, 2f, 1f); // Set to opaque gray
I want to set the spots that say "2f" with the float or string that I have to shade my sprite renderer
Comment
Not sure exactly what you mean however you should not use a value greater than 1 on a color, they are normalized and should be within the range 0-1.
Your answer
