Quantcast
Channel: Questions in topic: "loadleveladditive"
Viewing all articles
Browse latest Browse all 102

What is the state of GameObjects just after they have been loaded through a Application.LoadLevelAdditive() call?

$
0
0
Hi, there is something I misunderstand about Application.LoadLevelAdditive(): If I try to get GameObjects loaded just after a call to this method located in a Start callback, GameObject.Find() returns null for any object. So It seems that loaded GameObjects are only "avalaible" one frame later. That might mean they are activated with a 1 frame delay after they have been loaded. Ok, then what confuses me is that the Start method of every scripts attached to these objects gets called, letting me think we are still in the first frame. So GameObjects can not be retrieved through GameObject.Find(), but their scipts seem to be executed. What is their real state? Active? Not active? Almost active?... :-) Any explanation welcome! yoyoooooooo

Viewing all articles
Browse latest Browse all 102

Trending Articles