- Home /
How to add a new Scene at runtime? (Expansion Pack Style)
Hi,
Suppose we're making a racing game with 3 tracks,and we need to take care of the following points:
1- Adding new tracks (Scenes) in the future for the user to download, is this possible? How?
2- With this comes the need to display additional audio/visuals in the main menu screen and track-list. How to do this?
3- To make a full fledged case, we need to add new objects like cars, also they must be accessable from the main menu and usable in all tracks. Once again, how?
Thanks.
Dave, Ray thanks for replies, I too doubted the scene thing, maybe the best approach is to rearrange contents of a single scene to compose various tracks, in theory this might work.
Answer by DaveA · Feb 05, 2011 at 08:02 AM
Look into Asset Bundles and LoadLevelAdditive. You can package up pretty much anything in Asset Bundles. You can 'patch' (sorta) an existing scene with LoadLevelAdditive
Answer by Ray-Pendergraph · Feb 05, 2011 at 03:15 PM
To my knowledge you cannot add scenes that were not a part of the original build process for a given build of the game, even using additive loading. This may have changed in 3.x, but I kinda doubt it. You can add new content and assets all you want the way that DaveA was talking about but scenes are special in that they have to be determined up front... even if they are streamed incrementally to the web player. They are still known about in the build. Asset bundles will be your friend. Sounds like you will have to come up with clever way to not base the added tracks around a scene.
Answer by puzzledragon · Nov 01, 2011 at 10:48 PM
If you use pro look into Asset Bundles if you have indie check LoadRescources on the script reference