UxrControlInput.ReadControl Method
Creates an awaitable task that blocks until a control is clicked.
Namespace: UltimateXR.UI.UnityInputModule.Controls
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Task<UxrControlInput> ReadControl(
UxrControlInput control,
CancellationToken ct = default
)
Parameters
- control
- Type: UltimateXR.UI.UnityInputModule.Controls.UxrControlInput
Control to listen to - ct (Optional)
- Type: System.Threading.CancellationToken
Optional cancellation token, to cancel the task
Return Value
Type: Task(UxrControlInput)
Awaitable Task returning the control that was clicked or null if the task was cancelled
See Also
Reference
UxrControlInput Class
UltimateXR.UI.UnityInputModule.Controls Namespace