Prefab Enviroment ?
I have one big prefab called "Environment" it contains all the things I need for the current scene. Light settings, navmeshes , camera, post processing etc etc...
When Creating a level I add smaller prefabs to the environment. The idea is that I put a new environment prefab in a new scene and then proceed to make the level. This way I can change stuff in the environment prefab and it will make the change in all scenes.
I have been experiencing small problems with different Unity plugins/assets that dont seem to work well when they are within a prefab. I am pretty much self taught and am unsure if this concept is going to be sustainable in the future. Could someone tell me if I should be going forward with the environment prefab idea. Or maybe there is some other better method that I have missed ?
Answer by jimmiewalker653 · Nov 26, 2020 at 02:43 PM
I wouldn't keep everything in a prefab like that. You should only use prefabs for GameObjects, Enemies, Pickups, cameras, etc. The Environment should be just a collection of prefabs instead of one large prefab.
Aha I see. In that case what do you think of the following? I have one scene with the environment tree and inside it are the smaller prefab components. Then when creating new level I just copy/paste the scene.
$$anonymous$$ost definitely do that. In that case you could just create the terrain and setup the scene, then start copying it. After that, for each level, just simply start populating it with prefabs.