Search Issue Tracker
By Design
Votes
0
Found in
2022.1.0a7
2022.1.0b7
2022.2
Issue ID
1403718
Regression
Yes
OnPostprocessAllAssets and OnAfterDeserialize are called two times when creating a new asset
Reproduction steps:
1. Open the user's attached "AssetPostProcessorMultipleTimes.zip" project
2. Clear the Console window
3. Create a new Custom Data asset (Create -> Custom Data)
4. Observe the Console window
Expected result: OnPostprocessAllAssets and OnAfterDeserialize are called once
Actual result: OnPostprocessAllAssets and OnAfterDeserialize are called two times
Reproducible with: 2022.1.0a7, 2022.1.0b7, 2022.2.0a5
Not reproducible with: 2019.4.36f1, 2020.3.30f1, 2021.2.13f1, 2022.1.0a6
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
- Input from the "Backslash" key is not detected in the Web Player when using the Japanese 106/109 key keyboard
- High "Total" value of the "TerrainManager.CullAllTerrains" when generating terrain
- UI Layout rebuild triggered by a rounding error when using TextMesh Pro
- Sprite Shape Corners and Edges are invisible when a closed Sprite Shape is used
- Script icon Gizmos cause lag/performance issues in Scene view even when the Scene Camera is not pointed at Gizmos
Resolution Note:
ScriptableObjects have been changed to use the default values from the PresetManager when created using the [CreateAssetMenu] attribute. In order to apply the settings, it is necessary to know the name of the asset, which users are doing in the project browser. The import system has to import a temporary version of the asset once to let users enter their name, and a second time to populate the default values from the PresetManager.