Skip to content

Commit 958b22c

Browse files
committed
Attempt importing directly
1 parent 9859346 commit 958b22c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/AssetImporter/InputActionImporter.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,15 @@ private static void GenerateWrapperCode(AssetImportContext ctx, InputActionAsset
254254
className = codeClassName,
255255
};
256256

257-
/*if (InputActionCodeGenerator.GenerateWrapperCode(wrapperFilePath, asset, options))
257+
if (InputActionCodeGenerator.GenerateWrapperCode(wrapperFilePath, asset, options))
258258
{
259259
// When we generate the wrapper code cs file during asset import, we cannot call ImportAsset on that directly because
260260
// script assets have to be imported before all other assets, and are not allowed to be added to the import queue during
261261
// asset import. So instead we register a callback to trigger a delayed asset refresh which should then pick up the
262262
// changed/added script, and trigger a new import.
263+
AssetDatabase.ImportAsset(wrapperFilePath);
263264
// TODO Temporary disabled, reenable: EditorApplication.delayCall += AssetDatabase.Refresh;
264-
}*/
265+
}
265266
}
266267

267268
#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS

0 commit comments

Comments
 (0)