APlayerCameraManager::StartCameraFade

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

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Camera/PlayerCameraManager.h

Include

#include "Camera/PlayerCameraManager.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerCameraManager.cpp

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)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss