VR Preview grayed out in unreal 5 but not in unreal 4 for quest 2

There are a few steps you can try to troubleshoot the issue:

  • Make sure that your Oculus Quest 2 headset is properly set up and connected to your computer.
  • Check if the OpenXR and Oculus plugins are correctly installed and enabled in Unreal Engine 5.
  • Try to run the UE5 Editor and run the project in standalone mode, or from within the editor, to see if the headset is detected.
  • Check if there are any compatibility issues between the UE5 template and your Quest 2 headset by checking the Unreal Engine or Oculus forums for known issues and solutions.
  • Make sure that the latest software and firmware updates are installed on your Quest 2 headset and computer.
  • If all else fails, try restarting your computer, headset and UE5 Editor, or try to use a different UE5 template to see if the issue is specific to the one you are using.