I’m making a 3D game on Unity 2020.3 LTS and using URP. In player settings, I have 4:3 as the only supported aspect ratio and 1600x1200 for the default resolution.
I clear my Registry before each boot. When I boot into my ‘main menu’ scene, the game’s display is correctly in 4:3 with pillarboxing, and the playerprefs in my Windows Registry show 1600x1200 for all relevant resolution settings: Height, Height Default, Width, and Width Default. Use Native & Use Native Default are also set to 0.
However, on loading my actual game scene, Use Native is set to 1, Width is set to 1920, and my game is rendering at 1920 x 1200 without pillarboxing. I’ve searched my entire codebase for PlayerPrefs.SetInt, Screen.SetResolution, and every other relevant method, but have not turned anything up that could be causing this.
I get the same behavior when I build just my game scene out, without the main menu scene—the game starts at 1600x1200, then loads in at 1920x1200.
Does anyone have any idea what could be causing this? Is there anything aside from a PlayerPrefs.SetInt call that could be overwriting my Use Native Resolution player setting?