Search Issue Tracker
Not Reproducible
Votes
0
Found in
4.6.1f1
Issue ID
657710
Regression
No
[Editor] "AwakeFromLoadThreaded has not been called" when using DontDestroyOnLoad
To reproduce on Editor:
- Have Editor Debug built (mine was Windows version) 5.2.0a3
- Open Scene 2
- Play
- Wait a bit
- "AwakeFromLoadThreaded has not been called 'ChildWithScript' (MonoBehaviour). Figure out where the object gets created and call AwakeFromLoadThreaded correctly." appears attaching screenshot
Below steps are for Windows Store Apps
To reproduce:
1. Open attached project. It contains two scenes. One scene has a signleton object that sets DontDestroyOnLoad on itself. The object also has a child
2. Build a Universal app
3. Open the generated solution with Visual Studio and deploy in a debug configuration
4. Notice that after the scenes change from green back to blue (scene1 into scene0) an error is thrown in the console:
"AwakeFromLoadThreaded has not been called 'ChildWithScript' (MonoBehaviour). Figure out where the object gets created and call AwakeFromLoadThreaded correctly."
If you remove the singleton "DestroyImmediate(gameObject);" line of code - the error is no longer thrown.
Only reproducible when deploying through visual studio, build & run does not throw the errors.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Add comment