Question by
Soldadober · Mar 11, 2021 at 11:31 AM ·
scenescene-loadingoverlap
Scenes overlapping?
My game haves 2 scenes, the main menu and the level. For some reason I cant understand, the objects from the level scene (buttons, background) are present on the main menu scene. I would really appreciate some help, I just started with UNITY.
Thanks in advance.
Comment
Answer by rh_galaxy · Mar 11, 2021 at 11:39 AM
Either objects in the level scene are marked with DontDestroyOnLoad, and will not be destroyed when you load the menu again, or you load the menu scene additively.
Try
SceneManager.LoadScene("menu", LoadSceneMode.Single);
To help you further we need some code...