Jump to content

Previous scene is still in the background when i change scenes (UNITY, C#)

Hey guys, I'm making a game for a project of mine and when i switch scenes to the level from the start screen, in split screen mode you can see the text in the background (pictures below, you can see the start screen in the small gap between the 2 camera)

 

if anyone can help i  appreciate it :) 

 

1.PNG

 

2.PNG

Link to comment
Share on other sites

Link to post
Share on other sites

Did you do on scene load? 

I don’t know what your scene change script looks like so I can’t tell you. 

 

Anothing thing you can can try is having 1 scene and having the main menu be a UI and disable it after the player clicks play. 

 

EDIT:

may not be available to follow up. Only some suggestions. 

Link to comment
Share on other sites

Link to post
Share on other sites

On 2/28/2018 at 10:41 AM, fpo said:

Did you do on scene load? 

I don’t know what your scene change script looks like so I can’t tell you. 

 

Anothing thing you can can try is having 1 scene and having the main menu be a UI and disable it after the player clicks play. 

 

EDIT:

may not be available to follow up. Only some suggestions. 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEditor.SceneManagement;

public class LevelManager : MonoBehaviour {

	public void LoadScene(string name){                                     
		Debug.Log ("Load Level requested");                              
		SceneManager.LoadScene (name);                                    
	}

	public void QuitRequest(){                                            
		Application.Quit ();                                              
		Debug.Log ("Quit requested");                                     
	}
}

sorry about the late reply but this is my code, its fine in the single player mode its just in the split screen mode where you can still see the start menu in the background 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×