Hello, i know there are a ton of question about this, but i’ve read a lot of them and haven’t been able to find the solution yet.
1-When i load the game, the splash screen and mainmenu is loaded in a “dontdestroyonload” scene and all scene are loaded async.
2- After splash screen you reach start up menu, and it work. I can click it and all action work.
3- when starting a level, the pannel is deactivated untill you push escpace to activate it back. The click behavior doesn’t work anymore
A- Yes, the eventsystem is still in the scene, it is also reporting the click on the right object
B- The button react to mouse over and click (color change and sound are working)
C- no image/sprite or other UI element block reaction to the panel
D- yes everything have “interactable” checked
action are added this way in the Awake
Options.onClick.AddListener(delegate { OnOptionsButtonClick(); });
some have suggest to put the code in “start” but the object is in the same scene and shall not be a problem of gameobject not existing yet (if that was the case, it wouldn’t work in the first scene anyway).
During scene load, the pannel is move to a different location (the menu stand to the right in splash screen and is center while in the game). can this be a problem ?
is it because the application “loose focus” ? when i push escape i unlock the cursor so that you can move your mouse around and click the menu, which also make you loose focus on the application
any black magic to check ?