I wasn’t sure which forum to use for a general Unity query.
So, I’m just wondering about how our game will be organised, in terms of Projects and Scenes. We’re going to be doing a mobile game which will have extra DLC after initial release.
Presumably most people have the whole game as just 1 Project and then each part (level, track, map, etc) are different Scenes?
Does anyone have anything to say about this?
The plan for our game is to have ‘Locations’ which will contain ‘Challenges’. Some assets will need to be shared among all Locations, e.g. a vehicle, and some assets will only be shared among the Challenges in a single Location, e.g. a building or tree - although it’s quite possible that some assets will need to be reused in another Location. Then there will be some quite specific assets that are only ever used in a single Challenge.
E.g.
Game
- Challenge A1
- Challenge A2
- Challenge A3
- Challenge B1
- Challenge B2
- Challenge B3[/FONT]
So, presumably the Unity Project will contain the whole game, but should a Unity Scene represent a Location or a Challenge?
I guess a Scene per Location would work but we would have to enable/disable various GameObjects depending on the Challenge being played - is this possible/feasible?
What do you think?
Every time you switching so hard like screen fade out → screen fade in then there is a good reason to change the scene.
If your Challenges are totally different from the setting and so on you should change the scene, but if they are only lithely different like change in some game rules you can change it per switch via script.
enable/disable various GameObjects depending on the Challenge is total possible. You can make a gamobject witch has a scene manager script , you can setup a gamobject via script so that it’s not destroys if your scene changes, in that script you can store witch challenge / gameobject to activate on scene load.
I was really hoping I could get a few opinions on this one.
Ok, this is my thinking so far. I have a simple prototype project for a driving type game set up with the following:
(1) An initial “Main” scene with persistent GameObjects responsible for controlling different parts of the game. These objects will exist for the duration of the game and never be destroyed when loading scenes. A vehicle object will also be loaded here and will be persistent as it’s needed in both the garage and locations (see below).
(2) A “Front End” scene that is loaded immediately from the “Main” scene (for navigating the game). This scene will be dumped/reloaded through out the game.
(3) A “Garage” scene that is loaded/dumped as required (for setting up/customising the car).
(4) Several “Location” scenes that are loaded/dumped as required (where the actual driving gameplay takes place).
Any comments?
EDIT:
I did do it this way and found it worked nicely. There are quite a few other scenes too for things such as the Store, HUD and Widgets.