- Home /
Access to a scene that has just been loaded
A few days ago I asked about a problem I had where I loaded a scene and in the same frame I tried to access its GameObjects. Is it possible the scene hasn't finished loading in that time and so it's still empty when I try to access it?
Answer by xxmariofer · Apr 07, 2021 at 09:36 AM
Yes, the scene loading isnt completly synchronous, quoting the documentation:
" When using SceneManager.LoadScene, the scene loads in the next frame, that is it does not load immediately. This semi-asynchronous behavior can cause frame stuttering and can be confusing because load does not complete immediately."
Your answer
Follow this Question
Related Questions
Spawn an object with additional parameter 1 Answer
Unity 3D: How to make the gameobject speed increase continuously on tapping quickly? 1 Answer
Script wont let me drag and drop GameObject Of UI Menu into it? 1 Answer
How to make an object invisible before it is triggered to show? 2 Answers
Unity keep crashing when loading scene from a couritne (Unity 5.x) 1 Answer