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)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback