Vector2IntExt.ParseAsync Method
Tries to parse a Vector2Int from a string, asynchronously.
Namespace: UltimateXR.Extensions.Unity.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Task<Vector2Int?> ParseAsync(
string s,
CancellationToken ct = default
)
Parameters
- s
- Type: System.String
Source string - ct (Optional)
- Type: System.Threading.CancellationToken
Optional cancellation token, to cancel the operation
Return Value
Type: Task(Nullable(Vector2Int))
Awaitable task returning the parsed vector or null if there was an error
See Also
Reference
Vector2IntExt Class
UltimateXR.Extensions.Unity.Math Namespace