UI canvas gets copied when changing scene

Hey guys,
I have created 2 scene, scene1 has a button to change scene to scene2. In play mode when I click on the button, canvas from scene1 gets copied to the scene2 which I don’t want at all.
Any help would be appreciated.

Nothing should be copied from one scene to another unless you have a code script that calls DontDestroyOnLoad() on the gameobject, so you might search for that in your code.

Alternately, are you sure that Scene 2 does not just contain an identical canvas?

One more thing: If you have static variable in your code, after loading new scene it will not be destroyed too. be aware of that :slight_smile: