Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
konstantin_loze's avatar
7 years ago

Unity UI for Oculus Go?

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.

1 Reply

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    Check out the AvatarSDK there are pre-built controllers in that library