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
- Errors are logged when importing an asset at a path with Firebase
- Entering too big of a number in 2D Renderer Lightmode Tags freezes the Editor
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
Resolution Note (fix version 10.2.1):
This fix will be released as the 2D Animation package 10.2.1 or above.