UxrControlInput.ReadControls Method
Creates an awaitable task that blocks until a control from a given set is clicked, and returns the control that was clicked.
Namespace: UltimateXR.UI.UnityInputModule.Controls
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Task<UxrControlInput> ReadControls(
CancellationToken ct,
params UxrControlInput[] controls
)
Parameters
- ct
- Type: System.Threading.CancellationToken
Cancellation token, to cancel the task - controls
- Type: UltimateXR.UI.UnityInputModule.Controls.UxrControlInput[]
Controls to listen to
Return Value
Type: Task(UxrControlInput)
Awaitable Task returning the control that was clicked
See Also
Reference
UxrControlInput Class
UltimateXR.UI.UnityInputModule.Controls Namespace