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
- [MotionVectors][RenderingDebugger][MSAA] Render Graph Execution error and black Game View when enabling MotionVectors overlay in the Rendering Debugger with MSAA
- "[Project Auditor] Could not find any registered modules." warning is thrown when clicking "Start Analysis" and the rules were installed while there are compilation errors in the Editor
- Color Picker window flickers when expanding or collapsing dropdowns
- “ArgumentException: Object that does not belong to a persisted asset cannot be set as the target of a LazyLoadReference" is thrown when changing Unsupported Selector Action and saving in UI Builder
- Cursor image flickers in Viewport preview when unsupported Texture 2D is assigned to element
Resolution Note (fix version 10.2.1):
This fix will be released as the 2D Animation package 10.2.1 or above.