Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ToHtmlStringRGBA(Color)

Returns the color as a hexadecimal string in the format "RRGGBBAA".
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static string ToHtmlStringRGBA(Color color)

Parameters

color

The color to be converted.

Returns

Type

Description

stringHexadecimal string representing the color.

Remarks

Additional Resources: ColorUtility.ToHtmlStringRGB.