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

Asset - Importers

-

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

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.