XR Rig Setup
Launch Unity Hub.
Click New project.
Select 3D.
Give your project a name and choose a file destination under Project settings.
Click Create project.
Go to Edit > Project Settings. Click on XR Plugin Management on the left and install the XR Plugin Management.
Check Open XR under Plug-in Providers. Click yes when it prompts you to enable backends. Unity will restart.
Click the yellow warning sign next to OpenXR. Click fix all in the upper right corner of the window that appears.
You'll notice one of the warnings did not go away. Navigate to the OpenXR tab under XR Plug-in Management on the left.
Under Interaction Profiles click the + button and add Oculus Touch Controller Profile.
Close Project Settings.
Right click on the main camera and select XR > Convert Main Camera to XR Rig.
Set the Z position to 0.
Change the tracking mode to floor.
Change Camera Y offset to 0.
Optional: Setting Up Visible Controllers
Right click on camera offset and create an empty object. Name it "Left Controller".
Under Left Controller add the component Tracked Pose Driver.
Change device to Generic XR Controller.
Right click on Left Controller and add a 3D cube (or other 3D object according to what shape is desired to represent the controller) and resize it.
Do the same for the right controller.
For the right controller, change pose source in the component to right.