Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
OakleyMobile's avatar
OakleyMobile
Honored Guest
11 years ago

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

2 Replies

Replies have been turned off for this discussion
  • Please 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.
  • Create 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..