ButtonExt.ReadAsync Method (CancellationToken, Button[])

Asynchronously waits until a Button in a set is clicked. Returns the Button that was clicked.

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

Syntax

C#

public static Task<Button> ReadAsync(
	CancellationToken ct,
	params Button[] buttons
)

Parameters

 

ct
Type: System.Threading.CancellationToken
Cancellation token, to cancel the task
buttons
Type: Button[]
Buttons to wait for

Return Value

Type: Task(Button)
Awaitable task that will finish once a button was clicked or the Task was canceled, and that returns the Button that was clicked

See Also

Reference

ButtonExt Class
ReadAsync Overload
UltimateXR.Extensions.Unity.UI Namespace