[This is preliminary documentation and is subject to change.]

Creates a Unity color from a hex format color. (E.g. 0xFFCCAA)

Namespace: org.critterai.u3d
Assembly: cai-util-u3d (in cai-util-u3d.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static Color HexToColor(
	int hex,
	float alpha
)
Public Shared Function HexToColor ( _
	hex As Integer, _
	alpha As Single _
) As Color
public:
static Color HexToColor(
	int hex, 
	float alpha
)

Parameters

hex
Int32
The hex value of the color.
alpha
Single
The color's alpha.

Return Value

The Unity color associated with the hex color.

See Also