- Home /
Best way to structure unity app
I don't know if I wrote the question right, but bare with me. I am thinking of trying to make an app for a change, and I have a question about interface.
In a mobile app, there is typical more windows you can visit, like "home", "recipes", "information" and so on. The question is, would it be best to have all the different pages/windows in on single scene, or have a scene for each page/window? What would be best, and why?
"Best" is a subjective opinion and therefore not really suited to Unity Answers, which tries to focus on authoritative solutions to problems. But from your description, I can't think of any possible benefit to having multiple scenes - it sounds like this can be achieved solely in a UI canvas in one scene.
Answer by stanogg · Feb 06, 2017 at 08:35 PM
I think you should keep it in a single scene as long as the windows dont have drastically different behaviour / a lot of assets. Mainly because of easier transitions, referencing, etc...
I also forgot to mention that its a bartending app. So at least one of the pages will have a scrollable "database" with 100+ drinks. Would it still be appropriate with one scene?
Answer by James2Games · Feb 07, 2017 at 04:42 AM
It will be fine to have a single scene. If the entire game changed behavior between the two scenes (eg: The bar turned into a bar fight instead of serving drinks) then having 2 different scenes to recommended. Having a single popup will be fine as the popup will need to disappear and reappear at runtime.
If you have a lot of different popups that appear in the game and different sections of the game (Mainmenu, game, travel map, etc...) and want to spend time on a good UI flow then it's good to practice to have them in different scenes. But for a few handful of popups you will be fine with it all in one scene.
Thank you for the answer. But what do you mean by popup?
Ah sorry. I use "popup" to mean another screen that covers what's already displayed. Think of an error popup in windows/mac but can be any size and can be closed.