Click or drag to resize

ColorExtensionsToHex Method

Converts a UnityEngine.Color32 to a hex color

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static string ToHex(
	this UnityEngine.Color32 color
)

Parameters

color
Type: UnityEngine.Color32
Color to convert

Return Value

Type: String
Hex string with the values of the input color

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityEngine.Color32. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also