C# Класс UnityEngine.ColorUtility

A collection of common color functions.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DoTryParseHtmlColor ( string htmlString, Color32 &color ) : bool

Описание методов

ToHtmlStringRGB() публичный статический Метод

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

public static ToHtmlStringRGB ( Color color ) : string
color Color The color to be converted.
Результат string

ToHtmlStringRGBA() публичный статический Метод

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

public static ToHtmlStringRGBA ( Color color ) : string
color Color The color to be converted.
Результат string

TryParseHtmlString() публичный статический Метод

public static TryParseHtmlString ( string htmlString, Color &color ) : bool
htmlString string
color Color
Результат bool