Search Issue Tracker
Fixed
Fixed in 6000.6.0a5
Under Consideration for 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
- Economy package throws a CS0619 error in the Console when installed together with Deployment package
- “Screen position out of view frustum” errors are thrown when zooming out in the Scene view with Rect Tool selected
- Only one [UnityOneTimeSetUp] method runs when there are 2 of them in different classes
- Crash with multiple stack traces when Sprites with a high resolution get Sliced to a Grid with a small cell size in the Sprite Editor
- The UI Builder's Data Source Object picker cannot be navigated after triggering a circular dependency dialog box
Resolution Note:
Fixed in 6000.6.0a5
Resolution Note (fix version 6000.6.0a5):
Fixed in 6000.6.0a5