I am testing a plattform game. In a lot of devices run ok but in some phones or tablets, when i click “Start” in the main scene don’t load good the next scene.
When i click start, the game scene is superimposed on the main and does not look good.
The code it’s this…
void CargarEscenaJuego(){
SceneManager.UnloadSceneAsync(“Nivel0 - Inicio”);
SceneManager.LoadScene (EscenaACargar, LoadSceneMode.Single);
}
Can anybody help me, please?
It’s really hard to guess what might be wrong from what you are telling us but, given the available information, I’ll hazard one anyway.
I think maybe the fact that you are kicking off an asynchronous unload followed by a synchronous load could be the issue. When I tried code like that, I got a warning that unloading the last loaded scene was not supported. You’re loading the new scene in Single mode.
Why not try just loading the new scene and let Unity worry about destroying the old one?
I run into the problem of Unity not moving the player to the next scene when I use single mode. Do you guys just have the player in every scene? I’m trying to figure this out…