Hello Everyone,
I am trying to fade my camera in at the start of the game.
I took a look at the documentation and came across the function:
APlayerCameraManager::StartCameraFade();
However, I have no Idea how I call this function within a script.
I want to do this on the player from the FirstPersonTemplate
I added a C++ Component to this player and so far I tried:
void UTestingTransform::BeginPlay()
{
Super::BeginPlay();
//This didnt work
if (GetWorld())
{
cameraManager = Cast<APlayerCameraManager>(GetClass());
if (cameraManager)
{
UE_LOG(LogTemp, Error, TEXT("SUCCES"));
}
else
{
UE_LOG(LogTemp, Error, TEXT("FAILURE"));
}
}
//Neither did this
GetOwner()->FindComponentByClass<APlayerCameraManager>();
}
I understand that the class is childclass of AActor.
However, I can’t figure it out.
Perhaps someone can put me on the right track or provide me with an exampe?
Greetings,
Kyle