Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2020.3.19f1
2021.1
2021.2
2022.1
Issue ID
1370748
Regression
No
Scriptable Object reference is lost when loading a scene with EditorSceneManager.OpenScene method
Reproduction steps:
1. Open the user's attached project
2. Click Test > Cause Bug
Expected result: Scriptable Object reference is not lost
Actual result: Scriptable Object reference is lost and a custom error "Lost reference during scene loads" is thrown in the console
Reproducible with: 2019.4.31f1, 2020.3.21f1, 2021.1.25f1, 2021.2.0b16, 2022.1.0a13
Note:
- Issue is not reproducible when the Scriptable Object is selected and the Inspector window is open
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:
OpenScene will unoad unsused assets. Unloading unused assets does not consider the execution stack. This is by design. Use a static variable to reference assets that need to stay loaded.