Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ToHtmlStringRGB

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

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

ToHtmlStringRGB(Color)

Returns the color as a hexadecimal string in the format "RRGGBB".
public static string ToHtmlStringRGB(Color color)

Parameters

color

The color to be converted.

Returns

Type

Description

stringHexadecimal string representing the color.

Remarks

Additional Resources: ColorUtility.ToHtmlStringRGBA.

ToHtmlStringRGB(Color)

Returns the color as a hexadecimal string in the format "RRGGBB".
public static string ToHtmlStringRGB(in Color color)

Parameters

color

The color to be converted.

Returns

Type

Description

stringHexadecimal string representing the color.

Remarks

Additional Resources: ColorUtility.ToHtmlStringRGBA.