Setting resolution before Unity splash screen

Hello everyone,

here is the scheme I came up with for a minimalist game:

the game start in 1024x728. Unity splash screen plays. Then it is asked to the user if he wants to go fullscreen or no. If he picks yes, then he must pick a resolution from a list, the game go fullscreen and we’re ready to go. If he clicks no, then he must also pick a resolution, but this will only change the size of the current window.

Problem: the game won’t start in 1024x728. This is because the resolution from previous attempts is kept in the registry, in my case, the game starts fullscreen in 720p. I’ve then put in an Awake() function the code to set the resolution to 1024x728 in windowed mode. But this is run AFTER the damned splash screen. The game starts in fullscreen, the splash screen plays and then only we end up with a window in 1024x768.

Any suggestion from here is more than welcome!

Unity comes with a window where the user picks the resolution and whether or not he wants to go full screen, before the game and therefor the splash screen is launched… what’s the point in re-implementing it yourself? If it’s the bland look of the resolution window, you can customize that completely.

Do you have a link to get me started? I wasn’t aware this window could be customized and therefore it seemed easier to build my own system.

Still, I’m wondering whether or not my current problem can be solved!

You’ll have to cook up your own application and launch the Unity executable with the appropriate arguments it seems - I was mistaken on the customization. I have seen an asset in the store that allows you to easily template a launcher application in visual studio, but I can’t find it again for the life of me.

As for running your scripts before the splash screen comes up - that’s just not how it works. I reckon Unity is loading stuff in as the splash screen is being displayed, and your scripts only start executing afterwards.