07-02-2016 06:32 PM
Solved! Go to Solution.
07-02-2016 07:49 PM
if (Input.GetKeyDown(KeyCode.Space)
Jump();
07-02-2016 07:49 PM
if (Input.GetKeyDown(KeyCode.Space)
Jump();
07-02-2016 10:37 PM
07-02-2016 11:02 PM
vrdaveb said:
You mean OVRPlayerController? Try adding code like the following to OVRPlayerController.Update():if (Input.GetKeyDown(KeyCode.Space)
Jump();
07-02-2016 11:20 PM
07-02-2016 11:46 PM
07-03-2016 12:23 AM
07-03-2016 10:12 AM
if (OVRInput.GetDown (OVRInput.Button.Four)) {
Debug.Log ("Jump!");
Jump ();
}
07-03-2016 12:03 PM
vrdaveb said:
Use OVRInput, not Input. Also, Button.Three is X. Use Button.Four. Here is exactly the code I just added to OVRPlayerController.Update to confirm it works:if (OVRInput.GetDown (OVRInput.Button.Four)) {
Debug.Log ("Jump!");
Jump ();
}
07-03-2016 12:25 PM