APlayerCameraManager::StartCameraFade

Syntax

virtual void StartCameraFade
(
    float FromAlpha,
    float ToAlpha,
    float Duration,
    FLinearColor Color,
    bool bShouldFadeAudio,
    bool bHoldWhenFinished
)

Remarks

CameraAnim fades. Does a camera fade to/from a solid color. Animates automatically. Camera fades

Parameters

Parameter

Description

FromAlpha

Alpha at which to begin the fade. Range [0..1], where 0 is fully transparent and 1 is fully opaque solid color.

ToAlpha

Alpha at which to finish the fade.

Duration

How long the fade should take, in seconds.

Color

Color to fade to/from.

bShouldFadeAudio

True to fade audio volume along with the alpha of the solid color.

bHoldWhenFinished

True for fade to hold at the ToAlpha until explicitly stopped (e.g. with StopCameraFade)

References

Module

Engine

Header

Runtime/Engine/Classes/Camera/PlayerCameraManager.h

Source

Runtime/Engine/Private/PlayerCameraManager.cpp