best way to init and create new gameobject

Hello,

I have to create dynamically some gameobjects, prefabs and cameras that depend of the content of a XML file at the beginning of my game.
Where can I put the code that is in charge of the creation of the gameobjects ?
Inside the Start() script of the main Camera of my Scene ?
Does a function like Scene.Init() exist ?

Thanks,

You generally would create an empty ‘game controller’ GameObject in the scene and drop all your world-affecting scripts onto it. Their Awake and Start events will fire when the level starts and you’ll be able to create your other objects in there.

You could put this stuff on the camera, but that might be a bit confusing if you, for example, need multiple cameras and have to remember which one is carrying the scripts.