Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question XR WMR switch input by code between VR and Desktop

Discussion in 'VR' started by IElectric, Mar 15, 2021.

  1. IElectric

    IElectric

    Joined:
    May 31, 2016
    Posts:
    215
    Hello, I'm using the new XR system on my volleyball videogame and all works well, I would like to avoid to press WIN + Y or change WMR portal settings to pass the mouse/keyboard/joypad input to the VR when I wear the visor, what I need to do to automatic pass the control input between desktop and VR ? Thank you very much, Cheers...

    I'm using Unity 2020.3.0
     
    Last edited: Mar 18, 2021
  2. Cloudwalker_

    Cloudwalker_

    Joined:
    Jan 3, 2014
    Posts:
    140
    Block the infrared sensor so it thinks your head is there always.
     
    IElectric likes this.
  3. yl-msft

    yl-msft

    Microsoft Employee

    Joined:
    Jul 24, 2020
    Posts:
    10
    You can also go to your settings app on Windows 10, navigate to "Mixed Reality" >> "Headset display" >> "Input Switching", to select this option for "Manually switch using winY" instead of the "automatic switch".

    upload_2021-6-4_8-16-38.png
     
    IElectric likes this.