Search Unity

IN GAME: How do you create an interactive screen with buttons?

Discussion in 'VR' started by Matthew_whitby, Sep 25, 2018.

  1. Matthew_whitby

    Matthew_whitby

    Joined:
    Jul 2, 2018
    Posts:
    2
    I'm looking to create a virtual control panel that has a screen and navigating buttons to control a virtual loading dock. I am not quite sure where to start. I think I might use the leap motion SDK to create the buttons, but I don't know how to link those buttons with an in-game UI screen.

    Any suggestions or ideas?
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Normally any in-game UI is done with a Canvas; in VR, you use a World-Space Canvas. If that sounds like Greek to you, I recommend spending some time working through the Unity tutorials.
     
    gjf likes this.
  3. Matthew_whitby

    Matthew_whitby

    Joined:
    Jul 2, 2018
    Posts:
    2
    I have worked with Canvases before but I am just not sure on how to map in game interactive buttons with a UI canvas. I am also thinking of using a render texture as the screen to the control panel.
     
  4. Innovine

    Innovine

    Joined:
    Aug 6, 2017
    Posts:
    522
    Maybe you can add colliders to the ui elements, and note when the vr controller colliders enter and leave? Haven't tried this myself, but maybe its worth a shot.