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
- “FocusController has unprocessed focus events.” warnings are thrown after adding iOS, tvOS or visionOS Build Profiles
- Holes and different colors appear on default Tree Materials after applying them to the Tree GameObject and undoing changes
- Error indicating that the Text Asset Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
- Documentation installation shows "Install failed: Validation Failed" when installing Android Build Support module
- Error indicating that the Package Manifest Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
Add comment