Hello, so in my game, I have a menu that contains a few variables. In order to access the menu, I have to click a button. But whenever I load the game then click the menu button, the scripts in the menu would load after I click the button. This is a problem because if I need to change variables before first going into this menu, the changes would be overwritten by player prefs. I want the script to load as soon as the game starts. Script Execution Order did not work.
Any ideas?If you need one script’s start function run faster than others, try to change it’s Start() function to Awake() one.
Or if you have other scripts with awake function, you can add some delay via coroutines or invokes.
Are you using the menu as a level up type screen. If is it a different scene?