Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Freelook camera on touchscreen. Joystick interferes

Discussion in 'Cinemachine' started by borckard, Jan 18, 2023.

  1. borckard

    borckard

    Joined:
    Jan 19, 2021
    Posts:
    1
    I have a touch joystick (standard Unity UI asset) and a freelook camera (following character controller) that is controlled by inputs Mouse X and Mouse Y. When I use the joystick to move the character on touch screen, the camera moves too. Can I create a null zone at the bottom of the screen that the joystick is placed in that doesn't push Mouse X and Mouse Y values to the camera? Or is there some other way to handle this competing input problem? I am sure I am not the first to encounter this, but I can't find a clear, simple workable solution to this problem via these forum threads yet.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    6,864