- Home /
instead of LoadLevel, what can i use to finish in single scene?
in my game, i am using two scenes, one for menu and other for game play. But my game is mobile game so i dont want to use more loads. so what can i do to complete game in one scene instead of using two??
Use Canvas ins$$anonymous$$d of the whole scene it will help you in both :- 1) HUD ( likes scores, pause buttons etc) 2) $$anonymous$$ain menu screens will be displayed first then they will be game false all time. In this you can use all of the screens by enabling or disabling them .. they will load easily and you can do transactions easily between them .. And all of them will be in 1 scene :)
Answer by DoTA_KAMIKADzE · Aug 14, 2015 at 01:05 PM
I have no idea why would you want that "because of mobile", but anyway - just do it in a single scene. Get 1 camera to see only your things you need for menu and the other one to see only things you need for game, and that's pretty much it, just don't use some colliders, etc. in your "menu objects", unless you separate them from "game objects" with "time and space".
P.S. Obviously you can also go by instantiating and deleting prefabs way if you'd like so.
P.P.S. Also if the main part wasn't obvious enough - when you've correctly setup all your cameras just switch between them on some button click or whatever switches between menu and game and pause all game-related stuff while you're in menu, etc. etc. (the rest pretty much depends on how your game works).
Your answer
![](https://koobas.hobune.stream/wayback/20220611235847im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can you create transitions between levels using Application.LoadLevel? 6 Answers
cannot access the next scene 1 Answer
Loading bar for NEXT scene/level... 1 Answer
Level Load Display Delay 0 Answers
Load and run scene in background 1 Answer