ColorExt.TryParse Method

Tries to parse a Color from an HTML string (#RRGGBB or #RRGGBBAA).

Namespace: UltimateXR.Extensions.Unity.Render
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static bool TryParse(
	string html,
	out Color result
)

Parameters

 

html
Type: System.String
Source HTML string
result
Type: Color
Parsed color or the default color value if there was an error

Return Value

Type: Boolean
Whether the color was parsed successfully

See Also

Reference

ColorExt Class
UltimateXR.Extensions.Unity.Render Namespace