- Home /
DontDestroyOnLoad is works on Scenes in UNITY3D?
I Need to apply DontDestroyOnLoad on Scene.is it possible?
I Need to Do not disturb the scene when going in to another scenes also.here i'm sending mail,when ever clicking send button its going to authentication in mail server in this time my scene idle means not responding anything until come back to the response from mail server,so on that time i show one loading bar in my scene.this is not do process.the entire scene is hang until came response from mail server,so how to solve this plz help me.
void Awake()
{
DontDestroyOnLoad(this.gameObject);
}
Answer by HeliosDoubleSix · Aug 20, 2013 at 11:36 AM
You can also load another Scene additively over the top of your existing scene without removing anything already loaded with:
LoadLevelAdditiveAsync and LoadLevelAdditive
Indeed, if there are no objects from a previous scene or from a previous additive level load, this might be a better solution ;)
Answer by Joyrider · Aug 20, 2013 at 09:30 AM
And no you can't do a DontDestroyOnLoad on a scene, but you can put a DontDestroyOnLoad on all the objects of that scene, which will basically get you the same result.
Your answer
![](https://koobas.hobune.stream/wayback/20220613112604im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Destroying an object after its out of sight ! 2 Answers
Trigger player movement on touch 1 Answer
Distribute terrain in zones 3 Answers