Hi,
I’ve been using Unity for a few days now and have began to wonder about what the best practices are with regards to creating a full game with the system.
I have an idea, which I will explain, it would be great if people could confirm it as either a good or bad approach for basic game / level handling.
I want to use scene 1 as a Game Manager, which is responsible for:
a) Initialising the game at boot up
b) Saving / loading the game
c) Level management and progression (so opening up and closing down scenes, instantiating my game objects etc)
d) Loading / activating the main / options menu and level cut scenes
I also have a couple of additional questions:
- When a scene is changed, are all game objects shut down along with the scripts that they are running? If so then is it possible to force a particular scene or a GameObject in the scene (my Game Manager) along with all its scripts to stay active throughout the duration of the whole game?
- How does Unity handle caching of resources. Are resources loaded from the library for the current scene and then removed once the scene is changed, or are they cached in case they are used in the next scene? How is this handled on systems like iPhone where all of the resources are located in-memory?
- If I assign the same script to multiple objects, will static data be shared across them?
I’m still learning Unity so please forgive my noobiness ![]()
Thanks for your help
Mat