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
- Cameras Overlay window breaks when selecting a Camera GameObject with a longer name, first person button disappears
- Cache invalidation during Build time when the Graphics APIs list is reordered
- Incorrect selection range is reported when selecting text across lines in a multiline TextField
- Tile Palette: Blurry selection icon and inconsistent padding in brush selection dropdown
- Player crash when a specific project is built with Vulkan
Resolution Note (fix version 10.2.1):
This fix will be released as the 2D Animation package 10.2.1 or above.