Forum Discussion
OakleyMobile
11 years agoHonored Guest
UI Canvas Setup - Gear VR
Hi,
So I have looked through the forums and I am struggling to find out the best way to setup my UI Canvas so that its an overlay on the cameras. This is to overlay some HUD style interfaces that we need locked in the users view briefly.
It would be good to know if its best to use the World Space Canvas or Screen Space - Camera. Also what is the "safe zone" for each eye? Right now its all trial and error, and it would be good to know if I am just missing something very simple?
Thanks,
Adam
So I have looked through the forums and I am struggling to find out the best way to setup my UI Canvas so that its an overlay on the cameras. This is to overlay some HUD style interfaces that we need locked in the users view briefly.
It would be good to know if its best to use the World Space Canvas or Screen Space - Camera. Also what is the "safe zone" for each eye? Right now its all trial and error, and it would be good to know if I am just missing something very simple?
Thanks,
Adam
2 Replies
Replies have been turned off for this discussion
- vrdavebOculus StaffPlease use World Space and place the Canvas 0.5-2m in front of the user's face. You can make it a child of the main Camera to keep it locked to the user's face as they look around. Also be careful to scale it small enough that it's visible there. The default settings for a screen space Canvas are much bigger than you would want. If you want an example, have a look at our OVRDebugInfo script in the Unity 5 utilities.
- wheatgrinderExplorerCreate the new canvas as a child of the camera.
Set it to World space
reset the position and rotation of the canvas, it should be 0,0,0, relative to the camera
scale the canvas WAY down.. orders of magnitude down
move the canvas out in front of the camera some amount that works for you. You could make it huge but far away, which is interesting.. or small and close.. depends on your need.
Add your panels and away you go..
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
- 12 months ago
- 2 years ago
- 12 months ago
- 10 months ago