Search Unity

VR Controller + UGUI

Discussion in 'Input System' started by col000r, Sep 10, 2019.

  1. col000r

    col000r

    Joined:
    Mar 27, 2008
    Posts:
    699
    The old input system never provided a good way to use XR controllers to interact with UGUI. (I had to write my own InputModule and EventData object to make this work and it was not a good time.)

    Is that something that will be made easier with the new system?
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Yes. The InputSystemUIInputModule is designed to handle input from XR controllers to allow pointing at and interacting with UI elements.

    However, XR controller device support is currently being moved out of the input system package (to come back in separate packages, so the XR team can release updates on their own schedule), so you may have to wait a bit longer for a workable setup.
     
  3. col000r

    col000r

    Joined:
    Mar 27, 2008
    Posts:
    699
    Thanks for the info - glad to hear it's on the way!
     
  4. mikewarren

    mikewarren

    Joined:
    Apr 21, 2014
    Posts:
    109
    The InputSystemUIInputModule handle XR-UI (pointing) input as well as traditional modes (mouse, keyboard, touchscreen)? Is there an example somewhere on setting it up?
     
  5. col000r

    col000r

    Joined:
    Mar 27, 2008
    Posts:
    699
    Any news on this? Is there an easy way to do this yet?