Forum Discussion
sprocket
11 years agoHonored Guest
Oculus and Unity 4.6 UI?
Hi, I am curious regarding if anyone has had success with combining OVR rendering with the new UI system? Specifically, I want to replicate the HUD-like UI we have where everything is drawn in fron...
sprocket
11 years agoHonored Guest
That page does not really adress the rendering issue, but I solved that quite easily.
Basically, the way to get a HUD-like UI to always render on top of "real"/solid geometry is to assign a custom material to the UI element(s) in question. The shader for that material can employ the same simple trick as we used with NGUI, namely assigning the shader to the overlay queue. Voila, you will have a world space canvas with elements that will always render on top of everything without need for additional cameras. :)
Basically, the way to get a HUD-like UI to always render on top of "real"/solid geometry is to assign a custom material to the UI element(s) in question. The shader for that material can employ the same simple trick as we used with NGUI, namely assigning the shader to the overlay queue. Voila, you will have a world space canvas with elements that will always render on top of everything without need for additional cameras. :)
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 years ago