Hi there.
Possibly a stupid question, but I’ve made a full screen toggle for a game, which then saves the setting for next time the game is run. Changing the settings works fine when it’s fired by a mouse click (i.e. in my options screen when I set the value, the app comes in and out of full screen mode quite happily).
However, when I re-run the game and load in the setting, the fullscreen code seems to be ignored, and my app doesn’t toggle (the setting is definitely loading in correctly, the issue is just with the StageDisplayState call). My default in project.xml is to run full screen, but there’s a user setting to run windowed - this isn’t working. However, if i then go into my game’s settings screen and click a button to re-set it, the same code works again.
Is there some reason it would only work when I click to toggle it, and not at runtime?