C# Class UnityEngine.ColorUtility

A collection of common color functions.

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
DoTryParseHtmlColor ( string htmlString, Color32 &color ) : bool

Method Details

ToHtmlStringRGB() public static méthode

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

public static ToHtmlStringRGB ( Color color ) : string
color Color The color to be converted.
Résultat string

ToHtmlStringRGBA() public static méthode

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

public static ToHtmlStringRGBA ( Color color ) : string
color Color The color to be converted.
Résultat string

TryParseHtmlString() public static méthode

public static TryParseHtmlString ( string htmlString, Color &color ) : bool
htmlString string
color Color
Résultat bool