Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Is there a way to globally disable multi-touch input, just for buttons?

Discussion in 'UGUI & TextMesh Pro' started by sfallier_scopely, Apr 14, 2023.

  1. sfallier_scopely

    sfallier_scopely

    Joined:
    Aug 24, 2020
    Posts:
    7
    So, it's possible to register button clicks for multiple buttons at the same time if a player uses multiple fingers. This has the ability to cause complete chaos with your average UI & code design.

    I've dealt with lots of other UI systems, and built them from scratch myself - and the typical solution to this is to only consider touch index 0 for purposes of button clicks. Is there a setting somewhere that enforces this for UGUI? There's places in our game that require multi-touch (UI that supports zooming), so just doing
    Input.multiTouchEnabled = false;
    is not viable.