Two scenes loading at same time ...?? What's happening ?

Hello,

I have two scenes in my game. First is start screen & other is play screen. And i am experienced enough to switch scenes.
Now in Unity 4.6.1, i am trying to move from start screen to play screen. And i face some problems.

  1. It takes too much time to load next screen, even on 8GB RAM & 1 TB hard disk, iMac.

  2. When it loads the new scene, all assets from last scene will still be there. Just the button which i pressed will disappear.

Please help me. What can be the problem.
I have tried both legacy UI & new Unity 4.6.1 UI , still gets same problem.

Thanks.

Great details! Thank-you!

In the portion of the script on the: DontDestroyOnLoad, you’ll see that the scene’s (1st loaded scenes) elements will be marked to be kept, even when the scene is destroyed.
You should consider whether any objects from scene 0 (The first scene) DO in fact need to be kept for your next scene that loads. (It’s possible that the script you’re using is meant to keep some assets for use in the next scene, but without any further details, I cannot be sure. )

So, the culprit here, keeping the first scene’s assets alive, is the DontDestroyOnLoad area of the script.

Documentation here: http://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html