Search Issue Tracker
Fixed
Fixed in 6000.6.0a5
Under Consideration for 6000.4.X, 6000.5.X
Votes
0
Found in
6000.0.65f1
6000.3.4f1
6000.4.0b4
6000.5.0a4
6000.6.0a1
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}
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
- "Canvas Renderer" Component uses a low resolution icon
- NullReferenceException is thrown when installing the "QuickStart" page in the Multiplayer center
- Package Manager's Filter Panel does not show borders when viewed on Windows
- Blend Tree Threshold fields accepts NaN/Infinity values causing Node backgrounds disappear in Animator Controller view
- Animator Controller Layer Weight field accepts “NaN” as a valid value instead of rejecting it
Resolution Note:
Fixed in 6000.6.0a5
Resolution Note (fix version 6000.6.0a5):
Fixed in 6000.6.0a5