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 EventSystem XRUIInputModule vs StandaloneInputModule

Discussion in 'XR Interaction Toolkit and Input' started by beatdesign, Oct 7, 2020.

  1. beatdesign

    beatdesign

    Joined:
    Apr 3, 2015
    Posts:
    137
    In every tutorial I found online, If you want to interact with UI in XR you have to:
    • Add XRUInputModule to the EventSystem
    • Remove StandaloneInputModule
    If I do so, I expect that a screen space canvas will be unable to receive click or mouse events, because I removed the StandaloneInputModule. Yet, it still works without problems.
    Why?

    PS: I know that a ScreenSpaceCanvas is useless in VR, but I'm using it in a 2 monitor setup: 1 desktop monitor will display the screenSpaceCanvas, the other monitor will display the Oculus input.