I can set the UILabel color when I use static colours such as Color.black, but when I use a custom color by instantiating a new color, it doesn't work properly
public void SetTextColor (Color color)
{
label.applyGradient = false;
label.color = color;
label.MarkAsChanged ();
}
public void SetTextColorGradient (Color fromColor, Color toColor)
{
label.gradientTop = fromColor;
label.gradientBottom = toColor;
label.applyGradient = true;
label.MarkAsChanged ();
}
At the moment, when say fromColor has rgb of 250, 40, 0, it will set an rgb of an enormous number such as 34232,23423, 2349.