Skip to main content
Up and Coming
May 2, 2016

Screen.Width / .Height refers to "main monitor window" instead of Rift display(s)

Is there a way to get Screen. to refer to the Rift display instead of the main monitor display?  I do some UI work based on resolution of the monitor, and I need to know what's going on in the Rift to set it correctly.

I don't see any way of getting the resolution of the Rift screen from the current framework.

Also- it seems that input.mousePosition is based on the same Screen, meaning the main monitor.  Any way there to use the Rift screen as the basis for "Screen"?

Thanks

    2 replies

    Inspiring
    May 2, 2016
    Not sure about your question, but this belongs in the Development section. Not the General Community discussion. You can reach the Developer section by clicking the down arrow next to the drop-down menu on the top right an choosing Developer. Also it may help to mention what engine you are using, or to post in the appropriate engine section (for example for Unity or Unreal). Thanks.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    xhonziAuthor
    Up and Coming
    May 2, 2016
    Thanks Cyber- I was in the Unity forum when I posted this- but it took me to the login page first.  It must have tricked me, and dropped me back off in general after logging me in.

    Reopened in Unity forum:
    https://forums.oculus.com/developer/discussion/35528/screen-width-height-refers-to-main-monitor-window-instead-of-rift-display-s