Search Unity

Question Can I do VR interaction with traditional Unity UI yet?

Discussion in 'VR' started by chilton, Apr 19, 2021.

  1. chilton

    chilton

    Joined:
    May 6, 2008
    Posts:
    564
    Hi,

    For one of my products a few years ago, I had to write a ton of custom code to make the Oculus Rift work with the traditional Unity UI. Is it easier now, and if so, what do I need to include or configure, to interact with a basic UI I've designed in Unity's UI, in VR?

    Specifically I need sliders, buttons, and scrolling lists of images.

    Thank you!
    -Chilton
     
  2. Thomas-Mountainborn

    Thomas-Mountainborn

    Joined:
    Jun 11, 2015
    Posts:
    501
    The fastest and most robust way as far as I know is still the CurvedUI asset (not mine). Unity also implements UI interaction in their official VR course, but it's very basic.
     
  3. eV-Interactive

    eV-Interactive

    Joined:
    Oct 25, 2016
    Posts:
    41
    Unity's XR Interaction Toolkit has a XRUIInputModule that will take raycasts from the controllers and feed them into the standard UGUI input system. You don't have to use all their other interaction features.
     
    Thomas-Mountainborn likes this.