Add a custom color to a material

Hi guys,

i’m just trying a simple task, i try to give a gameobject a different color via scrip:

this code has no effect on the color:

Color myColor = new Color(123,123,123);
renderer.material.Color = myColor;

but if i use some of the predefined colors, each of them work:

renderer.material.Color = Color.Red;

so there must be something i forgot in the first part.
Do you know, what ? :face_with_spiral_eyes:

Unity isn’t screwed up, like Photoshop. It doesn’t make any sense to work in 0-255, when we’re not in a word of only 8 bits per channel. Seriously. Photoshop is a corrupter; you switch to 16- or 32-bits mode, and you still see 0-255 values. :face_with_spiral_eyes: Read the first sentence.