hi,
my title screen scene has a cutscene that completely repeats the cutscene from the Title Screen demo;
when you start the scene for the first time, everything works fine, the title menu opens instead of the pause menu;
but it is worth returning to the title screen scene and the pause menu is no longer hidden: at this moment, there is a hidden PauseUI menu in DontDestroyOnLoad, whereas when the title screen scene is first launched, it is not there and the menus are displayed correctly;
img: https://disk.yandex.ru/i/ElS2ih0xjttUPA
I've tried everything I can and now I'm desperate, I'm asking for any advice.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Is the Pause menu open at the time you switch back to the Title screen? Insert a Menu: Change state Action to turn off your Pause menu in the OnStart cutscene of the Title screen scene.
no, it is disabled inside DontDestroyOnLoad
unfortunately, this had no effect.
I'll tell you in more detail: when I return to the Title Screen Scene, I have the Title menu open and nothing else, but if I open the Options menu, for example, and go back, Pause will appear on top of the Title menu.
thus, the event runner does not work, but if you force it to run with the "run now" button, the Pause menu will turn off, as it should.
I cannot recreate such behaviour.
Try moving the Event to the Events Editor, which will run globally - i.e. for all scenes. To prevent it from running in other scenes, precede the Actions with a Scene: Check Action to limit its usage to your Title scene.
unfortunately, it didn't help either, but I noticed that exiting the Options, Load menu causes this bug, whereas the Credits menu doesn't cause it: Pause menu hides correctly.
but again, I don't see any difference between these menus, everywhere the exit buttons are set to crossfade.
Are you always clicking the Back buttons, or pressing the Escape key, to back out?
The Crossfade option is just a convenience. As a last resort, you could change it to Run Action List and manually turn on either Pause or Title depending on the current scene.