I’m not quote sure how to explain this to be honest. Whenever I load a new scene, it keeps the previous scene active. For example, here is the main menu:
When I click ‘Play Game’, it loads a new scene called ‘Gamemode’, which contains each level. It’s meant to look like this:
but instead looks like this:
Strangely, this only happens in the built version of the game, not in the engine itself. I’m sorry if I’m not explaining this properly, but I am not quite sure what is going on…
Madgvox
December 21, 2019, 12:07pm
2
What are you doing to load the scenes?
doarp
December 21, 2019, 12:12pm
3
Either the old scene uses DontDestroyOnLoad or the new scene is loaded with Additive mode.
public void Levels()
{
SceneManager.LoadScene(levelGameScene);
}
Strangely, it’s only this one scene that breaks.
It only does it in the built version of the game, so wouldn’t this glitch be in the editor too?
Update: it copies everything. Even the development console gets transferred over which makes me feel like it isn’t anything in code?
Turns out it was LWRP that caused the problem. Interesting.
doarp
December 23, 2019, 9:39pm
7
That makes no sense. Something is missing.
Madgvox
December 24, 2019, 12:06am
8
Are the gameobjects themselves getting transferred over, or just their images?
I was wondering if there’s an issue with the camera settings. Such as with camera.clearFlags.
Madgvox
December 28, 2019, 6:23am
11
Josh_DevDev:
just the images
Check the Clear Flags on the camera of the second scene. It should be set to skybox or background color.