Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APlayerController
Description
Tell client to fade camera @Param bEnableFading - true if we should apply FadeColor/FadeAmount to the screen @Param FadeColor - Color to fade to @Param FadeAlpha - Contains the start fade (X) and end fade (Y) values to apply. A start fade of less than 0 will use the screen's current fade value @Param FadeTime - length of time for fade to occur over @Param bFadeAudio - true to apply fading of audio alongside the video
| Name | ClientSetCameraFade |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include Path | #include "GameFramework/PlayerController.h" |
UFUNCTION (Reliable, Client)
void ClientSetCameraFade
(
bool bEnableFading,
FColor FadeColor,
FVector2D FadeAlpha,
float FadeTime,
bool bFadeAudio,
bool bHoldWhenFinished
)
Parameters
| Name | Remarks |
|---|---|
| bHoldWhenFinished | True for fade to hold at the ToAlpha until fade is disabled |