Search Unity

[Help]Touch To Rotate

Discussion in 'Input System' started by InfainStudio, Aug 24, 2021.

  1. InfainStudio

    InfainStudio

    Joined:
    Jan 7, 2015
    Posts:
    9
    Hi, I'm using unity input system and I'm trying to use touch delta to rotate my player(look around) but the problem is that when i use my on-screen stick which is supposed to move the player around, it also rotates the player because touch is being registered even when I'm using on-screen joystick. Is there any way i can limit the touch screen delta to read touch delta from only the left side of the screen Or avoid reading the touch when I'm touching Ui components such as on screen stick or buttons?
    I'm aware of the method where we put an invisible on-screen stick on the right side of the screen. But I don't want to use it because it doesn't feel natural and smooth to me
     

    Attached Files:

    Last edited: Aug 26, 2021
  2. InfainStudio

    InfainStudio

    Joined:
    Jan 7, 2015
    Posts:
    9
    can anyone help, please? i'm really stuck with it