Color (RGB) Help

Hi guys,

Problems like in the picture. The number does not look exactly the way. How can I be as int?

GUI.Label(new Rect(500, 0, 100, 100), "R : " + testMat.r.ToString());
GUI.Label(new Rect(500, 50, 100, 100), "G : " + testMat.g.ToString());
GUI.Label(new Rect(500, 100, 100, 100), "B : " + testMat.b.ToString());

How can I fix this?

The values are stored in a 0-1 range. Multiply them by 255. (1 x 255 = 255)

Use Color32 instead of Color.

–Eric

Thank you. Solved.