Search Unity

Question problems with button interactions with SteamVR plugin

Discussion in 'VR' started by vanhalstlouis, May 12, 2020.

  1. vanhalstlouis

    vanhalstlouis

    Joined:
    Apr 2, 2020
    Posts:
    1
    I'm new with Unity and VR and I want to make a tutorial for my little VR game I made.
    The player needs to cycle thru the screens with a back and next button. These buttons work perfectly in the simulator on screen (not with controllers and headset).
    When I test it with the headset, the buttons bug out. Click events don't always register and it does click-actions that I didn't assign (example: it skips a few screens and shows a wrong screen).

    I have other canvases with buttons in the scene, these work perfectly in VR.

    Here is an example of 1 screen:

    upload_2020-5-12_16-20-16.png

    Hierarchy of 1 tutorial section with the different panels.
    upload_2020-5-12_16-20-46.png

    All the components in the button element. I'm using the interactable and UI element script from SteamVR. The Click-events in the UI element are normally correct (because they work without VR)
    upload_2020-5-12_16-21-45.png

    What am I doing wrong?