2

A few minutes back I upgraded/updated the Input System package via the Package Manager to version 1.4.2 (from version 1.4.1). Now after every time I enter play mode and exit, I get the same error message SIX TIMES in the Unity Editor:

Type of instance in array does not match expected type
UnityEngine.InputSystem.PlayerInput:OnDisable () (at Library/PackageCache/[email protected]/InputSystem/Plugins/PlayerInput/PlayerInput.cs:1734)

But I don't know why this error occurs or even why it shows up, but I want to FIX it. Must I report it to Unity or what?

1
  • Did you do a clean build in c#?
    – jdweng
    Commented Aug 20, 2022 at 15:55

1 Answer 1

1

This is a new bug introduced on Input System 1.4.1+ when using multiple control schemas in the InputActions.

The new 2021.3.8f1 LTS will force update the Input System to 1.4.1.

As of 1.4.2, the bug is still there. This seems to be going for a month and no fixes yet.

If you can, downgrade it to 1.3.0 until this gets a bugfix update.

To manually downgrade the package:

  • Close the project.
  • Open Packages\Manifest.json and change the input package to "com.unity.inputsystem": "1.3.0".
  • Then just to be sure you can also delete the old version Library\PackageCache\[email protected]
  • Reopen the project and you should now have the working version.

You can also follow some other discussion threads about this issue: