Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question multiTouchEnabled reset to True after first touch

Discussion in 'Input System' started by Valentin_Emoface, Nov 29, 2023.

  1. Valentin_Emoface

    Valentin_Emoface

    Joined:
    Nov 9, 2023
    Posts:
    1
    I have a script that set Input.mutiTouchEnabled to false when the first scene open (in Awake).
    However, as soon as the user touch the screen, the value goes back to true.
    If I change it again after that, it will not be reset anymore.

    I first thought it was from another app settings, but I reproduced the same behaviour in a new empty project.

    This happened on 2 different Android device, it does not have the same behaviour in editor though, the value is always false after I set it first.

    Is there anyway to not have to set it twice / wait for user input to set it?