Forum Discussion
oliverj777
9 years agoExplorer
Unity - Gear VR : UI Selection - Gaze Input
Hello,
As Unity 5 now supports Oculus Gear, I'm struggling to find much documentation and instructions on how to do certain things 'natively' within Unity - theres just a lot of conflicting documentation out there (I understand that it's a growing technology).
The 'OculusSampleFramework' is a bit pointless now as it's complete out of date, and was developed before VR support within Unity.
So with that in mind - what is the best practice to select, or highlight a simple UI element? Or even setup a central reticle?
I've had a look at the OVR Unity Utilities too - but even that suggests dragging in VR Camera rigs into the scene, which just isn't necessary anymore as that is done on Build and would cause complications.
Any direction would be great. Thanks community!
As Unity 5 now supports Oculus Gear, I'm struggling to find much documentation and instructions on how to do certain things 'natively' within Unity - theres just a lot of conflicting documentation out there (I understand that it's a growing technology).
The 'OculusSampleFramework' is a bit pointless now as it's complete out of date, and was developed before VR support within Unity.
So with that in mind - what is the best practice to select, or highlight a simple UI element? Or even setup a central reticle?
I've had a look at the OVR Unity Utilities too - but even that suggests dragging in VR Camera rigs into the scene, which just isn't necessary anymore as that is done on Build and would cause complications.
Any direction would be great. Thanks community!
8 Replies
Replies have been turned off for this discussion
- vrdavebOculus Staff> The 'OculusSampleFramework' is a bit pointless now as it's complete out of date, and was developed before VR support within Unity.
Actually, the Sample Framework has always been designed to use Unity's built-in VR support. It works on Rift and Gear VR and includes OVRInputModule for driving world-space Unity UIs.
> what is the best practice to select, or highlight a simple UI element?
Here is our official guide. If you really don't want to use the Oculus Utilities, see this guide from Unity. - oliverj777Explorer
vrdaveb said:
> The 'OculusSampleFramework' is a bit pointless now as it's complete out of date, and was developed before VR support within Unity.
Actually, the Sample Framework has always been designed to use Unity's built-in VR support. It works on Rift and Gear VR and includes OVRInputModule for driving world-space Unity UIs.
> what is the best practice to select, or highlight a simple UI element?
Here is our official guide. If you really don't want to use the Oculus Utilities, see this guide from Unity.
Hello,
The reason why I say the Sample Framework conflicts, is because it has prefabs with VR controllers on. This is no longer necessary as the option within the Build Settings "Enable VR" does this for the user anyway.
So surely using this will just 'double up' on everything? - oliverj777ExplorerEven the UI Project demo you can download doesn't work - I get a namespace error.
- vrdavebOculus StaffThe Sample Framework should work. We tested it with the Utilities at the time it was shipped. The prefabs' GUIDs should match and the assets should not get duplicated in your project. Note that the UI project from our website is an older copy of some of the same assets in the Sample Framework. I would recommend downloading the SF and not the old UI package. The instructions on the blog should still be accurate.
- oliverj777ExplorerHello, thank you for your feedback. I've downloaded the Sample Framework and I'm currently having a look. The only thing that worries me is that there are OVRCameraRigs on all the scene which control the camera via the Headset. It was my understanding that the check box in the Build Settings "Enable VR" was to automate this anyway?
So with both the CameraRig present, and the VR enabled - won't this double up on the events and functions? - vrdavebOculus StaffOVRCameraRig uses Unity's built-in VR support. It doesn't duplicate it.
- elson915Explorer
The official guide has a broken 404 link. Can you please update it?
vrdaveb said:
> The 'OculusSampleFramework' is a bit pointless now as it's complete out of date, and was developed before VR support within Unity.
Actually, the Sample Framework has always been designed to use Unity's built-in VR support. It works on Rift and Gear VR and includes OVRInputModule for driving world-space Unity UIs.
> what is the best practice to select, or highlight a simple UI element?
Here is our official guide. If you really don't want to use the Oculus Utilities, see this guide from Unity. - vrdavebOculus StaffThaniks, it's moved to https://developer.oculus.com/blog/unitys-ui-system-in-vr
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
- 1 year ago
- 2 years ago
- 3 months ago