Color.Hex

static Color Hex(uint hexValue)

Create a color from an integer based hex value! This can make it easier to copy over colors from the web. This isn’t a string function though, so you’ll need to fill it out the whole way. Ex: Color.Hex(0x0000FFFF) would be RGBA(0,0,1,1).

   
uint hexValue An integer representing RGBA hex values! Like: 0x0000FFFF.
RETURNS: Color A 128 bit Color value.

Examples

Creating color from hex values

Color   hex128 = Color  .Hex(0xFF0000FF); // Opaque Red
Color32 hex32  = Color32.Hex(0x00FF00FF); // Opaque Green




Found an issue with these docs, or have some additional questions? Create an Issue on Github!