Search Issue Tracker

Fixed

Fixed in 10.2.1

Votes

1

Found in [Package]

10.1.4

Issue ID

DANB-860

Regression

Yes

2D Animation Samples are showing InvalidOperationException on InputHandling in affected scenes

Package: 2D Animation

-

Steps to reproduce:

  1. Create a new 2D URP project in 6000.2.0a5
  2. In Package Manager, install 2D Animation samples
  3. Open the scene inside the sample's "Assets/Samples/2D Animation/10.2.0/Samples/3 Character/_Character.unity" or "Assets/Samples/2D Animation/10.1.4/Samples/Extras/Attachment Points/_Attachment Points.unity" and go into Playmode

Actual results: 
Errors are being displayed such as the following
{noformat}
InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
UnityEngine.Input.get_mousePosition () (at <a00997cada454d618ca56426f89409b7>:0)
UnityEngine.EventSystems.BaseInput.get_mousePosition () (at ./Library/PackageCache/com.unity.ugui@50015aa2fc19/Runtime/UGUI/EventSystem/InputModules/BaseInput.cs:75)
UnityEngine.EventSystems.StandaloneInputModule.UpdateModule () (at ./Library/PackageCache/com.unity.ugui@50015aa2fc19/Runtime/UGUI/EventSystem/InputModules/StandaloneInputModule.cs:180)
UnityEngine.EventSystems.EventSystem.TickModules () (at ./Library/PackageCache/com.unity.ugui@50015aa2fc19/Runtime/UGUI/EventSystem/EventSystem.cs:481)
UnityEngine.EventSystems.EventSystem.Update () (at ./Library/PackageCache/com.unity.ugui@50015aa2fc19/Runtime/UGUI/EventSystem/EventSystem.cs:496){noformat}
 

 

Expected results: No errors should be displayed

Reproducible with versions: 2D Animation 10.1.4 / 2D Animation 10.2.0

Not reproducible with versions: 

Can't test with versions: 

Tested on (OS): MacOS

Notes:

  • No functionality loss is observed, sample scenes is still working as intended
  • This is most likely due to the update of the input handling changes in the `activeInputHandler` inside the "Project Settings -> Player" being set to "Input System Package (New)
  • Happens on 6000.1 and 6000.2 2D URP templates
  • This also happens on the Scene "Assets/Samples/2D Animation/10.1.4/Samples/Extras/Attachment Points/_Attachment Points.unity"
  • {{In the EventSystem}} gameobject and clicked on {{Replace with InputSystemUiInputModule}}  inside the Standalone Input Module component, the error cease to appear
  1. Resolution Note (fix version 10.2.1):

    This fix will be released as the 2D Animation package 10.2.1 or above.

Add comment

Log in to post comment