I’m looking for tips how to implement basic VR interaction on Oculus Quest.
Goals:
Show controllers in VR
Teleportation to fixed locations
Interact with Unity UI
Of course I tried Oculus’ SDK from the Asset store, but the amount of small and large bugs is gigantic in the demo scenes, which promises to be a very frustrating and time wasting way to build an app.
Consider not using any SDK at all. Showing controllers is just a matter of having models for them (which you can grab from the Oculus SDK, without using the rest of it), which you move around using the simple APIs for getting the controller local position/rotations. Teleportation is just changing the transform.position of the player (i.e. the GameObject you set up with the camera and controllers inside it).
Interacting with Unity UI is the hardest one; you do have to learn how the event system works, which isn’t documented as well as you will probably want. But it’s doable. Or you can get an asset like Curved UI, which includes ray interaction already. And then you just shoot a ray from one of the controllers you set up above.
It sounds like a lot, but it’s really not. Take it one piece at a time, and you’ll have it all working within a few days.
Further to Joe’s comment, a package for XR Interactions in Unity with native implementations is coming soon. This area is changing a lot so watch this space!
I’m really interested in a pure XR solution. I’ve seen a few so far and written one several months ago. I think I’m coming back to that way of thinking, now that I know a lot more than I did before.
I came across a Bolt XR-only solution the other day which was quite interesting.
Also, yes, I also found a lot of bugs/problems with the Oculus demo scenes, and read post after post about people having trouble with them. So, I wrote my Example for how to use Oculus Integration and have been keeping it up to date.
See this thread, I wrote my own character controller based off the Oculus Integration pack examples that I could possibly share but I would encourage others to wait for the XR Interaction package to arrive
Hey thanks all, the current project is under timepressure and what we need is quite simple (look around, teleportation, interact with UnityUI). I managed to get it working with the Oculus SDK so I’ll stick with that for now ( this fixed teleportation problems for me)
However, I’m really looking forward to a “native” unity XR implementation.