Search Unity

UI buttons hit area have shifted after building to android

Discussion in 'Editor & General Support' started by mikelimsen, Oct 23, 2018.

  1. mikelimsen

    mikelimsen

    Joined:
    Oct 23, 2018
    Posts:
    2
    I have 7 buttons next to each other. In Unity editor I am able to use gaze input to interact with those buttons.
    However, when I build to android, the hit areas for the buttons have shifted far to the left. I've deleted all buttons and created a new one, built it again and the hit area still shifts to the left and not even on the button.
    The buttons are under one canvas in Worldspace as it is a VR project. Raycast target set to on for each image on button and all buttons are interactable. I've searched everywhere and couldn't find a solution that works and I am still new to this.
    I've attached an image as an example, the two red circles are the hit areas for the two buttons in circled in blue.
    upload_2018-10-23_20-37-50.png