How do I make a CameraActor my main camera?

In BeginPlay use this:
UGameplayStatics::GetPlayerController(GetWorld(), 0)->SetViewTarget(TPCamera);