Skip to content

Unity's New Input system breaks touch input on android. #766

Closed
@timbotimbo

Description

@timbotimbo

Describe the bug
There were multiple users on Discord that mentioned touch not working on android.
After some testing it appears to be because of the new input system in Unity.
Once the New Input System is enabled, touch no longer works on android.

It only occurs with the default useAndroidViewSurface: false, setting it to true makes touch work again.
This workaround causes quite a few bugs so I would not recommend doing this.

My current advice is to stick with the (default) old input system or use the Both setting.

To Reproduce
Enable the new input:

  1. Open the example project
  2. Change the input system in the unity player settings to the new package.
    input system
  3. Install the Input system package from the package manager.
  4. In the scene, open the EventSystem-> Standalone input module.
    There should be a button to update it to the Input System UI Input Module.
  5. Canvas buttons now work using the new input system.

Steps to reproduce the behavior:

  1. Make a unity export of the example with the new input system.
  2. Run it on android and no touch input in Unity will work.
Platform Old input New input
iOS
webGL
Android (useAndroidViewSurface: false)
Android (useAndroidViewSurface: true)

Setup

  • Android 7, 9, 12 and 13
  • Unity 2021.3.14 and 2022.2.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidThis issue is specific to the Android Platform.bugThis issue refers to a bug in the plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions