InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

[Actions] Icons set by importer don't work on initial import

Open Rene-Damm opened this issue 7 years ago • 4 comments

The icons are that the importer sets on the root InputActionAsset and the contained InputAction objects are loaded through EditorGUIUtility.Load which, for things not coming from the editor asset bundle, falls back to querying the asset database. This won't work on the initial import as the .png icons will be importer after .inputactions files.

Repro:

  1. Delete Library/ folder on InputSystem project
  2. Open Unity

See errors in log and generic icons on .inputactions files in the project.

Rene-Damm avatar Apr 18 '19 12:04 Rene-Damm

@Rene-Damm Can you take a screenshot of the error? I don't encounter any persistent error msg after deleting the Library folder.

JiaUnity avatar Apr 19 '19 23:04 JiaUnity

Error Is this the error msg?

JiaUnity avatar Apr 20 '19 00:04 JiaUnity

@JiaUnity Yup, that's the error message. My guess is that it comes from the failed access to icons that don't yet exist.

If you hit "Reimport" on an .inputactions asset after the initial import, everything will be fine. The correct icons will appear on the assets and no errors will show up in the log.

Rene-Damm avatar Apr 22 '19 10:04 Rene-Damm

Filed in Fogbugz: https://issuetracker.unity3d.com/product/unity/issues/guid/1152967/ Closing

JiaUnity avatar May 09 '19 01:05 JiaUnity