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
- Crash on GizmoDrawingPhysics2D::DrawCompositeCollider2DGizmo when opening a Scene that has corrupted GameObjects with Tilemap Components
- Scrolling vertically and horizontally is very fast when in Play Mode and RuntimeInputBackend is set to UIToolkitInputBackendOption.Default
- Crash on MemoryProfiler::UnregisterAllocation when initializing entities and leaving Play Mode with Occlusion Culling enabled
- Crash on mdb_page_alloc when opening a project that was running while the PC shut down
- macOS Player freeze when using RunInBackground and Command+Tabbing to and from the application
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a16