UxrCameraFade.StartFadeCoroutine Method

Coroutine that fades the screen over time. It can be used to be yielded externally from another coroutine. FadeAsync(CancellationToken, Single, Color, Color) is provided as the async alternative.

Namespace: UltimateXR.CameraUtils
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public IEnumerator StartFadeCoroutine(
	float fadeSeconds,
	Color startColor,
	Color endColor
)


Parameters

 

fadeSeconds
Type: System.Single
Seconds it will take to execute the fade
startColor
Type: Color
Start color value
endColor
Type: Color
End color value

Return Value

Type: IEnumerator
Coroutine IEnumerator

See Also

Reference

UxrCameraFade Class
UltimateXR.CameraUtils Namespace