Application.LoadLevel problems (484612)

Hey guys,

I’ve got a serious problem with the Application.LoadLevel.
So I’ve got 2 different scenes, added to my build.

So first of, unity starts the first scene, as it should, that is scene 0.
Then I call Application.LoadLevel(1) in a button.
And it loads like it should, but it does not unload scene 0.

Resulting in 2 levels overlapping eachother, both operational.

So the problem is, when I load scene 1, it does not unload scene 0.

Does anybody have any idea what the problem could be and how to resolve it?

Hi!
Never heard of it before.
Are you sure that you don´t have any DontDestroyOnLoad on any of your elements in scene 0 ?

noway to happen like this is you give the correct code. Just check it out as svenskenfan said…

That’s a really good question! I’ve taken this project over from a collegue of mine, and that just might be it! Thank you, I’m gonna look through it and let you know.

And indeed, the former developer indeed had a dontdestroyonload. Thanks for the help!