Modifying the Lyra camera to make a Top Down game in UE5

For those facing the same problem, here are some tips:

  • to change rotation: modify or override ALyraPlayerController::PlayerTick by adding TargetPawn->SetActorRotation(NewRotation);

  • to change aim rotation: modify CameraCachePrivate.POV with PlayerCameraManager->SetCameraCachePOV(NewCachedView);

  • to change weapon target position: add your aim logic in ULyraGameplayAbility_RangedWeapon::PerformLocalTargeting

  • top down camera: just modify the camera from TopDownArena and add a player following func