I am trying to figure out how to use oculus remote in Unity3D 5.3.4f. I found documentation about OVR mapping, but I can't figure out how to do this.
I want to reach when the middle button (Button.One) is pressed.
Now i use this line of code
if (OVRInput.GetUp(OVRInput.Button.One))
{
Debug.Log("remote click");
}
But when I run the application, I get this error.
NullReferenceException: the reference to the object is not installed in the object instance OVRInput.GetUp (Button virtualMask, ControllerMaskMask) (in Assets / OVR / Scripts / OVRInput.cs: 600) menuButtonHandler.Update () (at Assets / menuButtonHandler.cs: 136)
What can be found in this script
public static bool GetUp(Button virtualMask, Controller controllerMask = Controller.Active)
{
return OVRManager.input.GetResolvedButtonUp(virtualMask, RawButton.None, controllerMask);
}
Has anyone used Oculus for remote control before in unity and can help me?
Thank,
Johan