ColorExt.ParseAsync Method
Parses asynchronously 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 Task<Color?> 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(Color))
An awaitable Task that returns the parsed color
Exceptions
Exception | Condition |
---|---|
FormatException | The string had an incorrect format |