UxrCameraFade.FadeAsync Method
Starts a fade over time using an async operation.
Namespace: UltimateXR.CameraUtils
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public Task FadeAsync(
CancellationToken ct,
float fadeSeconds,
Color startColor,
Color endColor
)
Parameters
- ct
- Type: System.Threading.CancellationToken
The cancellation token to cancel the async operation - fadeSeconds
- Type: System.Single
The fade duration in seconds - startColor
- Type: Color
The fade start color - endColor
- Type: Color
The fade end color
Return Value
Type: Task
[Missing