Scene does not unload when loading another one

Hello there.

It’s very simple. I have a game that runs perfectly loading the game scenes in Windows and iOS. With the Mac version the loading scene keeps loaded while executing the game scene. So both scenes are there. I’ve tried everything even unloading the loading scene but the problem persists.

Unity 2022.3.41 is what I’m using with macOS with an M2 processor with Sonoma last version.

Any ideas? As I say works perfect with iOS, as soon as I change to macOS standalone this issue happens. Important: this only happens with the build. With the editor everything is fine.

Thanks!

I reply myself. If I copy the .app to another Mac then it works perfect. Now why the .app works on another Mac with the same characteristics and not in the first is something I cannot understand. I will keep investigating.

How did you determine that the scene remains loaded?

Did you check the player log? Getting an exception in an inconvenient place can mess up all kinds of stuff.

Maybe it’s related to some save data? When you copy the app to a new Mac, you start with a fresh save.

Hello. Because the loading scene keeps visible while adding the elements of the canvas of the game scene. Both are seen even if I try to unload the loading scene.

Where can I see the logs? I have activated developer build but it is not being generated on the library folder. Am I missing anything?

Player and editor logs are separate and the location depends on the platform.

See “Player-related log locations” here, halfway down the page:

Is there any code that could cause this? Perhaps the loading scene content is set to DontDestroyOnLoad, or a component somehow takes the loading canvas for input and instantiates that into the new scene. Although that kind of thing should occur on all platforms and machines.

Hi. Thanks for the advice. Finally I’ve replicated everything in another Mac. Same Unity same M2 processor same all. I’ve compiled and everything goes smooth and all the scenes load perfectly. I think the problem is related to the configuration of the other Mac, something that is broken or so. I will reinstall everything from scratch. I don’t have more time to be studying this problem, I must continue my work and it’s clear that the first machine has some misconfiguration.

Thank you all for your support, you’ve been very helpful.