Search Issue Tracker
Active
Under Consideration for 6000.6.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}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on UndoManager::RegisterUndoInternal when applying added GameObjects to a Prefab
- [Asset Bundles] A new bundle hash is not generated when the name of a serialized field is changed
- Icon section shows incomplete message and unusable check box in Build Profiles and Player Settings window instead of “Not applicable for this platform” for Dedicated Server Platform
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
Add comment