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

Starts a fade over time on the given camera. The camera will fade out to a given color and then fade in from that color again. This is the static helper method that can be used to perform everything in just a single static call.

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

Syntax

C#

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

Parameters

 

camera
Type: Camera
The camera to perform the fade on
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 executed right after the fade out finished
fadeInFinishedCallback (Optional)
Type: System.Action
Optional callback executed right after the fade in finished

See Also

Reference

UxrCameraFade Class
StartFade Overload
UltimateXR.CameraUtils Namespace