UxrCameraFade.StartFade Method (Single, Single, Color, Action, Action)

Starts a fade over time on the camera that has this component. The camera will fade out to a given color and then fade in from that color again. For a coroutine-friendly way of fading check StartFadeCoroutine().

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

Syntax

C#

public void StartFade(
	float fadeOutDurationSeconds,
	float fadeInDurationSeconds,
	Color fadeColor,
	Action fadeOutFinishedCallback = null,
	Action fadeInFinishedCallback = null
)

Parameters

 

fadeOutDurationSeconds
Type: System.Single
Number of seconds of the initial fade-out
fadeInDurationSeconds
Type: System.Single
Number of seconds of the fade-in
fadeColor
Type: Color
The color the component fades out to and fades in from
fadeOutFinishedCallback (Optional)
Type: System.Action
Optional callback that is called just after the fade out finished
fadeInFinishedCallback (Optional)
Type: System.Action
Optional callback that is called just after the fade in finished

See Also

Reference

UxrCameraFade Class
StartFade Overload
UltimateXR.CameraUtils Namespace