Please Help : How do i switch the main/target camera in c++

Oh wait you want to switch camera on same actor right ? if that do this instead

//Activate 3rd person
FirstPersonCameraComponent->Deactivate();
ThirdPersonCameraComponent->Activate();

//Activate 1st person
ThirdPersonCameraComponent->Deactivate();
FirstPersonCameraComponent->Activate();
1 Like