Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


scenemanager

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
scenemanager [2021/05/21 02:14]
uninomiconadmin old revision restored (2021/05/01 16:36)
scenemanager [2021/12/24 23:22]
archo [Scattered Notes] OnAfterDeserialize
Line 62: Line 62:
   * During a scene load (ie. Awake) the loading scene has ''scene.isLoaded=false''   * During a scene load (ie. Awake) the loading scene has ''scene.isLoaded=false''
   * During a scene unload (ie. Destroy) the unloading scene has ''scene.isLoaded=false''. ((You might expect during the unload phase that isLoaded=true, but this is not the case, even though all of the Scene objects are still perfectly loaded and accessible))   * During a scene unload (ie. Destroy) the unloading scene has ''scene.isLoaded=false''. ((You might expect during the unload phase that isLoaded=true, but this is not the case, even though all of the Scene objects are still perfectly loaded and accessible))
 +  * ''ISerializationCallbackReceiver.OnAfterDeserialize'' is called before the async loading of heavy scene resources (e.g. textures) so can be used for running scene-specific thread-aware code early in the loading process.((Unlike ''MonoBehaviour'' events which are called at the end.))
  
  
scenemanager.txt · Last modified: 2022/01/30 19:55 by narry