Color32Ext.ParseAsync Method

Parses asynchronously a Color32 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 Task<Color32?> ParseAsync(
	string html,
	CancellationToken ct = default
)

Parameters

 

html
Type: System.String
Source HTML string
ct (Optional)
Type: System.Threading.CancellationToken
Optional cancellation token, to cancel the operation

Return Value

Type: Task(Nullable(Color32))
An awaitable Task that returns the parsed color

Exceptions

ExceptionCondition
FormatExceptionThe string had an incorrect format

See Also

Reference

Color32Ext Class
UltimateXR.Extensions.Unity.Render Namespace