C# Class UnityEngine.ColorUtility

A collection of common color functions.

ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
ToHtmlStringRGB ( Color color ) : string

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

ToHtmlStringRGBA ( Color color ) : string

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

TryParseHtmlString ( string htmlString, Color &color ) : bool

Private Methods

Method Description
DoTryParseHtmlColor ( string htmlString, Color32 &color ) : bool

Method Details

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

ToHtmlStringRGBA() public static method

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

public static ToHtmlStringRGBA ( Color color ) : string
color Color The color to be converted.
return string

TryParseHtmlString() public static method

public static TryParseHtmlString ( string htmlString, Color &color ) : bool
htmlString string
color Color
return bool