Forum Discussion
TrevorSun
8 years agoHonored Guest
Can see the a whole VR screen though Rift Headset, but lost Touch control
Hi team
Sorry have to bother. I am quite new in Oculus integrated in Unity3d development, I have a problem that 'Oculus Touch Controllers' can not control when my app start.
I can see the a whole VR screen though Rift Headset, but when i press the button in the Touch, nothing happens.
What i have done is installed the latest version of Unity 2018.2.10f1, and integrated with Oculus from Unity Assertstore
and update Oculus to 1.29.
By reference Unity and oculus official doc, i have add OVRCameraRig object and remove the original camera.
and called OVRInput.Update() method at the beginning of original update() method in the script.
My code basically like:
I dev the app in mac, then build and run it in windows.
One thing i have notice is from Oculus doc(below), there should have one MonoBehaviour called 'OVRManager':
https://developer.oculus.com/reference/unity/1.29/
Which have the status member OVRInput which should related to the controllar.
But i can not find 'OVRManager' in the assert i downloaded (only script but no frefab).
Not sure if this is the reason.
If yes, how can i get the 'OVRManager' which not exist in official download form Unity and Oculus......
Sincerely thanks if you can help.
Sorry have to bother. I am quite new in Oculus integrated in Unity3d development, I have a problem that 'Oculus Touch Controllers' can not control when my app start.
I can see the a whole VR screen though Rift Headset, but when i press the button in the Touch, nothing happens.
What i have done is installed the latest version of Unity 2018.2.10f1, and integrated with Oculus from Unity Assertstore
and update Oculus to 1.29.
By reference Unity and oculus official doc, i have add OVRCameraRig object and remove the original camera.
and called OVRInput.Update() method at the beginning of original update() method in the script.
My code basically like:
if (OVRInput.GetDown(OVRInput.Button.One)) {
XXXXXXXX;
} else if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger)) {
XXXXXXXXX;
}
And i put it in Update method and assign the script to OVRCameraRig.
}
And i put it in Update method and assign the script to OVRCameraRig.
I dev the app in mac, then build and run it in windows.
One thing i have notice is from Oculus doc(below), there should have one MonoBehaviour called 'OVRManager':
https://developer.oculus.com/reference/unity/1.29/
Which have the status member OVRInput which should related to the controllar.
But i can not find 'OVRManager' in the assert i downloaded (only script but no frefab).
Not sure if this is the reason.
If yes, how can i get the 'OVRManager' which not exist in official download form Unity and Oculus......
Sincerely thanks if you can help.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 months ago
- 6 months ago