I can visualise in my head a colour in 0-255 ranges as in Color32.
I find it difficult to understand 0.x range of colours as in Color.
At moment I get this error
Assets/GroundColour.js(12,9): BCE0043: Unexpected token: xxxColor32Color.
I would just like to be able to convert Color32 values to Color with out mess at begin of var. Is that even possiable?
var xxxColorColor32 : Color = Color32(198,255,154,255);
#pragma strict
private var varColor32Color;
function Start ()
{
//gameObject.renderer.material.color = Color(0.777, 08, 0.604);// Change ground colour to dark green.
//gameObject.renderer.material.color = Color32(198,255,154,255);// Change ground colour to dark green.
// This is how you convert Color and Color32 values between each other
var xxxColor32Color : Color32 = Color(0.777, 08, 0.604);// This would return Value of (198,255,154,255)
var xxxColorColor32 : Color = Color32(198,255,154,255);// This would return Value of (0.777, 08, 0.604)
xxxColor32Color : Color32 = Color(0.777, 08, 0.604);
}