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

Asset - Importers

-

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

  1. 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

Add comment

Log in to post comment