Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ColorUtility

class in UnityEngine

Switch to Manual

Description

A collection of common color functions.

Static Functions

ToHtmlStringRGBReturns the color as a hexadecimal string in the format "RRGGBB".
ToHtmlStringRGBAReturns the color as a hexadecimal string in the format "RRGGBBAA".
TryParseHtmlStringAttempts to convert a html color string.