Unity UI for Oculus Go? — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Unity UI for Oculus Go?

konstantin_lozevkonstantin_lozev Posts: 185
Hiro Protagonist
Hello everyone, I have started a new Unity project and imported the Oculus SDK for Unity. It has a sample UI scene with gaze control and 2 scripts - OVRInputModule.cs and OVRGazePointer.cs. I want to convert that gaze based UI control to using the Oculus Go controller as a laser pointer.
I looked at this post https://developer.oculus.com/blog/adding-gear-vr-controller-support-to-the-unity-vr-samples/ but it references other files that are not found in the Oculus SDK folder that I have. I tried to adapt some of the code and put it in the OVRInputModule.cs. It sort of works, but the linerenderer lags behind a frame or two.
Here is a link to the apk:
And to the whole project folder:
I also uploaded only the OVRInputModule.cs file:
And a pdf with trck changes from the original OVRInputModule.cs file:

I cannot believe that there are no scripts adapted to controller-based input. Am I missing something?
Thanks a lot in advance.

Answers

  • JacksonGordonJacksonGordon Posts: 138
    Art3mis
    Check out the AvatarSDK there are pre-built controllers in that library
Sign In or Register to comment.