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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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.