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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
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.