- Home /
Question by
gaia2222 · Apr 27 at 10:33 AM ·
inputvrcontroller
How can i get the oculus quest 2 input in unity?
I use oculus quest 2 and only install the asset of Oculus XR Plugin and XR Interaction Tookit. Xr interaction debugger can only get my position and axis from my hand. When I press all button on the controller and nothing happend. The value of all button won't change...What is the problem?
Thankyou for help.
sc.png
(111.4 kB)
Comment
Answer by codemaker2015 · May 04 at 01:45 PM
Ensure that Oculus Integration package is imported in your project.
using UnityEngine;
using UnityEngine.SceneManagement;
public class SceneLoader : MonoBehaviour {
void Update() {
if (OVRInput.Get(OVRInput.Button.Two))
SceneManager.LoadScene("name");
}
}
Refer to Input for Oculus to know more about the Oculus controllers.
Your answer
Follow this Question
Related Questions
Vive Controller not enabled until mouse click 0 Answers
VR "Hold" Screen for gallery Instal 0 Answers
OVRInput does not work in my script 1 Answer
HTC vive button not working after reconnect 1 Answer
OpenVR controllers Vive 2 Answers