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. Dismiss Notice

Type of instance in array does not match expected type

Discussion in 'Input System' started by rigel_unity293, Aug 19, 2022.

  1. rigel_unity293

    rigel_unity293

    Joined:
    Jun 29, 2020
    Posts:
    12
    Unity 3D 2021.3.8f1
    Unity Hub - Third Person Core - Template
    is throwing the following error in play mode, six times.

    UnityEngine.InputSystem.PlayerInput:OnDisable () (at Library/PackageCache/com.unity.inputsystem@1.4.1/InputSystem/Plugins/PlayerInput/PlayerInput.cs:1735)

    Even though I have the editor to pause on error and this registers as a halting error, Untiy 3D does not pause or end the play.

    This only happens when the "NestedParentArmature_Unpack" is active.

    This happens regardless of when, where, or what project that I choose to import either this asset or the entire package from the asset store.

    Has anyone else encountered this?
     
  2. Karsten

    Karsten

    Joined:
    Apr 8, 2012
    Posts:
    183
    I can confirm, the same happens to me, the times are really rough these days, switching back to 2020

    Edit: This line 638 in the InputBindingResolver.cs seams to throw this its a Debug.Assert I think we can ignore this for now, its very very ugly yes

    Debug.Assert(type.IsInstanceOfType(array[count]), "Type of instance in array does not match expected type");
     
    Last edited: Aug 22, 2022
  3. Vinay-WowLabz

    Vinay-WowLabz

    Joined:
    Apr 20, 2022
    Posts:
    1
    Yup. I can confirm this happens for me as well. It's very irritating and I hope this doesn't cause any performance or build issues.
     
  4. Alvarden

    Alvarden

    Joined:
    Feb 22, 2019
    Posts:
    55
    I can confirm that this also happens to me every time i exit play mode with Input System 1.4.2 (Unity 2020.3.38f1. Also tested on a different project with Unity 2021.3.8f1. Same thing). It doesn't happen with 1.3.0.
    Proof-Error-Input.png
     
  5. ninjamoment

    ninjamoment

    Joined:
    Aug 9, 2015
    Posts:
    1
    I am also getting this error with just a fresh install with only the input system
     
  6. Alvarden

    Alvarden

    Joined:
    Feb 22, 2019
    Posts:
    55
    Last edited: Nov 18, 2022