Although we used the X and A buttons, feel free to use whichever button combination works for your situation. The Unity documentation has a complete mapping for the Oculus, Gear VR and Vive controllers at https://docs.unity3d.com/Manual/OculusControllers.html. The mapping contains the name, interaction type, and ID of each button. These values are needed to tell Unity how to handle button inputs.
Depending on your version of the OVRPlugin or Unity, the Teleporter script may not work as expected. You may also have to add input settings for the controller buttons. Perform the following steps below to map the controller inputs:
- Select Edit | Project Settings | Input from the main menu.
- The Inspector panel now ...