Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2019.4.3f1
2019.4.21f1
2020.2
Issue ID
1346479
Regression
Yes
AssetPostprocessor ignores deleted assets when the deleted asset is reimported after exiting the Editor
Reproduction steps:
1. Open the attached project ("TestImport.zip")
2. Open the Assets directory via File Explorer
3. Copy the "New Test SO.asset" and "New Test SO.asset.meta" files to desktop
4. Delete the "New Test SO.asset" using Unity Editor: Project window > Right-click on the "New Test SO.asset" > Delete
5. Exit the Editor
6. Reimport the copied "New Test SO.asset" and "New Test SO.asset.meta" files back to the project's Assets directory
7. Reopen the project
Expected result: When calling AssetPostprocessor.OnPostprocessAllAssets() method, the reimported asset's name is included in the "importedAssets" array
Actual result: The reimported asset's name is not included in the "ImportedAssets" array when calling AssetPostprocessor.OnPostprocessAllAssets() method
Reproducible with: 2019.4.3f1, 2019.4.29f1, 2020.2.0a15
Not reproducible with: 2018.4.36f1, 2019.4.2f1, 2020.2.0a16, 2020.3.14f1, 2021.1.15f1, 2021.2.0b4, 2022.1.0a3
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a16