acoppes / unity-history-window

A simple selection history window for Unity.
MIT License
293 stars 24 forks source link

Gemserk.SelectionHistory.asset is broken after update to 1.1.16 #43

Closed rhys-vdw closed 1 year ago

rhys-vdw commented 1 year ago
Unable to import newly created asset : Assets/Gemserk.SelectionHistory.asset
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Gemserk.SelectionHistoryReference:.cctor () (at ./Library/PackageCache/com.gemserk.selectionhistory@1.1.16/Editor/SelectionHistoryReference.cs:25)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])

UnityEngine.UnityException: Creating asset at path Assets/Gemserk.SelectionHistory.asset failed.
  at (wrapper managed-to-native) UnityEditor.AssetDatabase.CreateAsset(UnityEngine.Object,string)
  at Gemserk.SelectionHistoryReference..cctor () [0x00026] in .\Library\PackageCache\com.gemserk.selectionhistory@1.1.16\Editor\SelectionHistoryReference.cs:25 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])

I've had a look at the code and I can't work out why this is happening, but the plugin is simply not working anymore. This is on 2022.3.11

rhys-vdw commented 1 year ago

Forcibly reimporting the package resolved this issue.

acoppes commented 1 year ago

Thanks for reporting and for the workaround. I couldn't reproduce that issue last time I tried but will try again one of these days, not sure what could be happening.

rhys-vdw commented 12 months ago

Yeah, honestly I think it was probably just some random Unity library corruption. I closed the issue because I doubt there's anything you could do about it!