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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to disable multi-touch with the new Input system?

Discussion in 'Scripting' started by sking995, Aug 13, 2021.

  1. sking995

    sking995

    Joined:
    Mar 22, 2021
    Posts:
    18
    Hi,

    On the old UnityEngine.Input system, you would just have to call Input.disableMultiTouch = true to disable multitouch. However, this does not work on the new Input system (UnityEngine.InputSystem).

    How do you disable multi-touch with the new system?

    EDIT: I'm looking through the documentation but I can't find anything yet. I assume I have to restrict the number of active touches at one time or something rather

    Thanks
     
    Last edited: Aug 13, 2021
  2. sking995

    sking995

    Joined:
    Mar 22, 2021
    Posts:
    18
    upload_2021-8-13_11-13-19.png

    The docs don't specify and alternative
     
    Last edited: Aug 13, 2021
  3. anilozmen

    anilozmen

    Joined:
    Nov 11, 2021
    Posts:
    3
    There is an alternative for New Input System. Open EventSystem object in your Scene. Input System UI Input Module component has a field named Pointer Behaviour. Select Single Unified Pointer.