Reproduction steps:
- Open the attached project
- Open the TestScr.cs script from the Assets folder
- Go to Assets -> Neon Pack -> Sprites
- Open Sprite Atlas preview by clicking on “Atlas1” or “Atlas2” asset
- Make changes to the script, save
- Open the editor and observe the Console
Expected result: No errors in the Console
Actual result: Error in Console
Reproducible with: 2022.1.0a14, 2022.1.8f1
Not reproducible with: 2020.3.36f1, 2021.3.6f1, 2022.1.0a13, 2022.2.0a1, 2022.2.0b1, 2023.1.0a3
Reproduced on: Windows 10
Error: The previous instance of UnityEditor.U2D.SpriteAtlasImporterInspector was not un-loaded properly. The script has to be declared in a file with the same name.
UnityEditor.AssetImporters.AssetImporterEditor:InternalSetTargets (UnityEngine.Object[])