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
Steps to reproduce:
- Create a new 2D URP project in 6000.2.0a5
- In Package Manager, install 2D Animation samples
- 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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 10.2.1):
This fix will be released as the 2D Animation package 10.2.1 or above.