Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2019.4
2020.3
2021.1
2021.2
2022.1
2022.1.0a7
Issue ID
1362489
Regression
No
Resources.Load returns 'False' in OnPostprocessAllAssets when the Asset was externally changed and loaded in [InitializeOnLoad]
How to reproduce:
1. Open "Assets/Resources/SampleAsset.asset" from the "case_1362489" project with a text editor
2. Change the last line(numberField: N) into another number and save
3. Open the project in the Editor
4. Observe the Console log
Expected result: AssetPostprocessor load result returns 'True'
Actual result: AssetPostprocessor load result returns 'False'
Reproducible with: 2019.4.31f1, 2020.3.21f1, 2021.1.26f1, 2021.2.0b16, 2022.1.0a12
Note 1: Commenting [InitializeLoad] in the script results to the Expected result
Note 2: Opening the project after an upgrade/downgrade might result to the Actual result without following the repro steps. In that case, before following them - restart the Editor
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a4