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
- SpeedTree importer fails to import .st files when path to the project includes a special character
- [VFX Graph] HSLS Redefinition error when input have the same name as attributes
- [VFX Graph] HLSL VFXFIXED_RAND isn't working
- Crash on Meta Quest 2 when using Vulkan
- Greyed out Icon for Tool Context is misaligned in the Tools Overlay in the URP 3D Sample Template
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.