Search Issue Tracker
By Design
Votes
1
Found in
2020.2.0a1
2020.2.3f1
2021.1
2021.2
Issue ID
1313940
Regression
Yes
Assets are reimported when AssetPostprocessor class is renamed
Reproduction steps:
1. Open the user's attached project
2. Navigate to Editor/Folder1 and open TestPostProcessor2 script
3. Change the class name to TestPostProcessor1 (or anything else)
4. Return to Unity and observe the Console window
Expected result: Assets are not reimported
Actual result: Multiple notifications about assets postprocessing are logged (meaning that assets were reimported)
Reproducible with: 2020.2.0a1, 2020.2.5f1, 2021.1.0b7, 2021.2.0a5
Not reproducible with: 2018.4.32f1, 2019.4.20f1, 2020.1.17f1
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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
Resolution Note (2021.2.X):
Our Postprocessor hashes are based upon the class name so, whilst moving a Postprocessor shouldn’t trigger a reimport, usually renaming it would. The reason we use the class name rather than the GUID for the Postprocessor hash is that there’s not an easy way to convert from a Type to a GUID, not least because one type can be composed of multiple partial classes, each with their own GUIDs