Search Issue Tracker
Active
Under Consideration for 6000.5.X
Votes
0
Found in
6000.0.65f1
6000.3.4f1
6000.4.0b4
6000.5.0a4
Issue ID
UUM-131887
Regression
No
Animation Parameters example code uses legacy Input System causing “InvalidOperationException” errors spam in the Console window
Steps to reproduce:
1. Create new Unity project
2. Create a Cube GO in Hierarchy window
3. Import provided script “NewMonoBehaviourScript.cs” to the project
4. Attach the script to Cube
5. Enter Play mode
6. Observe the Console window
Actual results: Errors “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.” are spammed in the Console window, using code from documentation page is outdated - https://docs.unity3d.com/6000.4/Documentation/Manual/AnimationParameters.html
Expected results: No errors should be thrown in the Console, documentation should be updated to use new Input System
Reproducible with versions: 6000.0.65f1, 6000.3.4f1, 6000.4.0b4, 6000.5.0a4
Tested on (OS): macOS Silicon Tahoe 26.2 (M1)
Error:
{code:java}
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.Internal.InputUnsafeUtility.GetAxis (System.String axisName) (at <235c3c213dbf46ca8dfbe3370d5e3c62>:0)
UnityEngine.Input.GetAxis (System.String axisName) (at /Users/bokken/build/output/unity/unity/Modules/InputLegacy/Input.bindings.cs:368)
SimplePlayer.Update () (at Assets/NewMonoBehaviourScript.cs:15)
{code}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Console shows Exception: {"error":"not found","detail":["not found"]} after opening Build History window
- [HDRP] Volumetric cloud shadows disappear when there is no directional light shadows
- “Selector” column names in the Search window are lowercase when added
- Install List Project Counter Panel can be right clicked through and Install Context Menu can be opened disabling Project Counter Panel's buttons
- [MacOS] Scene is marked/flickering as dirty (with asterisk) when dragging a Material on a GameObject in Scene view
Add comment