ToHtmlStringRGB() public static method

Returns the color as a hexadecimal string in the format "RRGGBB".

public static ToHtmlStringRGB ( Color color ) : string
color Color The color to be converted.
return string
コード例 #1
0
 public static string SetStringColor(string str, Color textColor)
 {
     return("<color=#" + ColorUtility.ToHtmlStringRGB(textColor) + ">" + str + "</color>");
 }