Can’t Compile The camera shake in unreal 4.27.1.Getting this error:
error C2664: ‘void APlayerController::ClientStartCameraShake(TSubclassOf,float,ECameraShakePlaySpace,FRotator)’: cannot convert argument 1 from ‘TSubclassOf’ to ‘TSubclassOf’
UPROPERTY(EditAnywhere, Category = "Combat")
TSubclassOf<class UMatineeCameraShake> HitCameraShakeClass;
if (HitCameraShakeClass) {
//ClientStartCameraShake()
GetWorld()->GetFirstPlayerController()->ClientStartCameraShake(HitCameraShakeClass);
//GetWorld()->GetFirstPlayerController()->PlayerCameraManager->StartCameraShake(HitCameraShakeClass);
}
Any Idea How to solve this issue?