Hey Guys,
I have been stuck with this problem for over 8 hours now and I just think there is something I’m not seeing or don’t know about yet.
To be fair I am new to the Unreal Engine and I have been prototyping with it mainly in C++.
I created a project based on the FirstPersonTemplate.
Want I want to achieve right now is when the game starts the camera should fade from black to the game.
I searched on the API and came across this function:
APlayerCameraManager::StartCameraFade(float FromAlpha,float ToAlpha,float Duration,FLinearColor Color,bool bShouldFadeAudio,bool bHoldWhenFinished)
But I have no idea how to call this function and from where.
I created a C++ Component on the FirstPersonTemplate player.
I tried to get the the class with
FindComponentByClass<Comp>()
but it doesn’t inherit from UActorComponent so its invalid.
I also tried to cast it from the script via
cameraManager = Cast<APlayerCameraManager>(GetClass());
But this also gave me a null refrence.
Maybe one of you could guide me on the right path or give me an example?
Greetings,
Kyle