Unity Issue Tracker - Reimporting a Scripted Importer Asset when Profiler is recording will make it null
Closed
UUM-20602
Reimporting a Scripted Importer Asset when Profiler is recording will make it null
Unity: Asset - Database
Won't Fix
2023.3.X
2023.2.X
2023.1.X
2022.3.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
2022.1 has reached end of life so the issue will be fixed in a newer version.
Reproduction steps:
Open the attached “ReproProject.zip” project
Select the “LogAssetStatus” GameObject in the Hierarchy window
Ensure that the “Test” Import Issue Asset is attached to the “Asset Status” Script Component’s Asset field in the Inspector window
Open the Profiler (Window > Analysis > Profiler)
Change Profiler to “Edit Mode” and press the Record button
Observe the Console window
Right-Click "test" Import Issue Asset in the Project Browser window and select “Reimport”
Observe the Console window
Actual result: Multiple "asset.IsValid = False" outputs in the Console window after reimporting the asset
Expected result: Only "asset.IsValid = True" outputs are present in the Console window