Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
GoesTo11's avatar
GoesTo11
Protege
10 years ago

Screen space UI and World space UI problem

I have set up a screen space UI in my project which is visible on the monitor output but not in the hmd.  This allows me to change game settings and monitor the game while someone else is playing.  I would also like to use world space UI elements that the player can change.  However, my screen space UI does not appear to be compatible with the OVR input system.  Is there a way to get the two to play nicely?  The player does not need mouse control, only gaze or 3D tracked controllers.  Thanks.

6 Replies

Replies have been turned off for this discussion
  • my screen space UI does not appear to be compatible with the OVR input system.

    It sounds like you are making an OVRInputModule-driven UI that the player uses in VR and a non-interactive UI that appears on the main monitor. Is that correct? It should already work. What specific issue are you seeing?

  • Thank you for the reply.  Both UIs need to be interactive.  The main monitor needs to work with the mouse and keyboard and the VR UI needs to work with the HMD and controllers.  I can only get one or the other to work.
  • Ok, got it. Sounds like we need to update OVRInputModule to allow you to simultaneously use StandaloneInputModule. We'll take a look. In the meantime, you might be able to add a script to toggle between the two.
  • It sounds like you might be trying to use OVRInputModule with a screen space UI.   OVRInputModule  can only be used with a world space canvas.  Screen space in VR doesn't really make sense because it would effectively be headlocked.
    You will need to create two UIs, one screen-space for the monitor player, and one world-space for the VR player.
  • Yes, I have created two UIs, one screen-space and the other world space.  I guess the screen space is automatically using OVRInputModule.  How do I get the screen space UI to use the regular Unity input module and disable mouse input into OVRInputModule?  Thanks.
  • tgfawad's avatar
    tgfawad
    Honored Guest
    I am facing the same issue with the same problem. Does anyone got any update on this?