Can overlays be used with the NRSDK, or does everything have to be World Space and Camera Smooth Follow?
I tried to use a canvas in overlay mode but nothing shows up on the screen except for the controller pointer.
Can’t say I’ve tried it, but what’s the use case? You wouldn’t be able to interact with any screen space UI since any means of control is in world space. It probably wouldn’t be viewable or readable either with it being so close to your eyes. You need that perceived depth to focus.
EDIT:
Instead of smooth follow, if you want something to stick to the camera like a screen space UI would on other devices, you could attach it to the camera itself. Then it will move in the same spot, abruptly, same pace as your head.
I did experiment with this a bit, but couldn’t figure it out yet… If I ever find a solution I’ll let you know…
As for the use cases, think a health bar on a game, or ammo count… Such info belongs into a hud-like paradigm
I’m not that familiar with Unity. How do I attach my HUD panel to the NRCamera?
You could still attach that to the camera and have it moved with the users head movement
For simplicity you could just make your object the child of the camera.
If you’re unfamiliar with Unity, I would suggest getting a few tutorials or following a few of Unity’s Learning paths to get some understanding. You’ll struggle implementing things with a 3rd Party SDK if you don’t know even the basics
Dragging the panel under the NRCamera did it, thanks!
I start following the tutorials, but I just start knocking out code and forget about them.
Do you mind sharing a demo project showcasing what you did?
You literally just drag and drop.
I do advise getting Unity basics under your belt
Yeah, but you have 3 cameras, and none of them seems to show the overlay. I also made sure to move it beyond the clipping plane of the cameras and give it a “higher priority” (I don’t recall the term). But none of that seems to work. I’m obviously missing something and it’s probably silly, but I can’t figure it out…
Make a world space canvas like normal, scale and move it so you can see it in the game view, move that canvas underneath the NRCameraRig. That will move with the camera with no smooth follow/