Search Unity

UISlider value error on Android

Discussion in 'UGUI & TextMesh Pro' started by Krstn, Oct 22, 2018.

  1. Krstn

    Krstn

    Joined:
    Dec 30, 2012
    Posts:
    27
    Hello

    When I add a UISlider to a Canvas with Screen Space - Camera mode, when I try to drag a handle, it seems to detect the movement only on the left 50% of the slider and it is offset by half of the screen. It's like the touch detection was offset by 50% of the screen. But apart from the UISlider all other UI elements seem to work fine.
    This does not happen when i do this on Screen Space - Overlay canvas.

    This is happening to me only on Android, in Editor it works just fine.

    Any tips for this behaviour?
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    Try to test it in the editor with the same resolution as your android device. It is likely that the problem has to do with the resolution rather than the OS.
     
  3. Krstn

    Krstn

    Joined:
    Dec 30, 2012
    Posts:
    27
    We did, a lot of tests. The only way to work around the issue was to create a separate canvas for this specific element.