Search Issue Tracker

Won't Fix



Found in




Issue ID




"InvalidOperationException" is thrown when creating new Input Action



How to reproduce:
1. Open the project “IN_24666”
2. Create new Input Action
3. Unselect the created Input Action by pressing somewhere else in the Project window

Expected result: Input Action created without errors in the Console
Actual result: errors in the Console and new inputAction references are not created

Reproducible with: 1.4.4 (2022.2.0a15, 2022.2.5f1, 2023.1.0a24)
Not reproducible with: 1.4.4 (2020.3.43f1, 2021.3.16f1, 2022.2.0a14)
Fixed in: 2022.2.6f1, 2022.2.9f1

Reproducible on: Windows 10 Pro

Note: regression in the editor versions not a package itself

Error: Asset import failed, "Assets/New Controls.inputactions" > InvalidOperationException: Failed to add object of type {{{}InputActionAsset{}}}. Check that the definition is in a file of the same name and that it compiles properly.
UnityEngine.InputSystem.Editor.InputActionImporter.OnImportAsset (UnityEditor.AssetImporters.AssetImportContext ctx) (at Library/PackageCache/com.unity.inputsystem@1.4.4/InputSystem/Editor/AssetImporter/InputActionImporter.cs:95)
UnityEditor.AssetImporters.ScriptedImporter.GenerateAssetData (UnityEditor.AssetImporters.AssetImportContext ctx) (at <fb4b2b846bd340e1bbba875d5cbe1b24>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  1. Resolution Note:

    There are no fixes planned for this Bug

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.