Question by
ArunabhDev · May 18, 2021 at 03:34 PM ·
c#unity 2dbuild-errorresolutionbuild settings
Resolution of my game is weird after exporting/building my game
Hey guys I was developing a game and the resolution of my game was 1620 x 780 . In my editor it was working great.
But after exporting/building it, the game looks wonky. Aka. The Camera looks zoomed.
So if you guys could help, it would have been great.
Solutions already used:
Changed the resolution of both player settings and the resolution of the game screen. But not working.
Attached a code in an empty gameObject of every scene(Do I need it to correlate to something?).
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ScreenResolutionManager : MonoBehaviour { // Start is called before the first frame update void Start() { Screen.SetResolution(1620, 780, false); } // Update is called once per frame void Update() { } }
Thank you in Advance :)
screenshot-2-min.png
(288.7 kB)
screenshot-3-min.png
(388.6 kB)
Comment
Your answer
Follow this Question
Related Questions
Unity 2D Build Error 0 Answers
Display issues, Unity 2019 is not compatible to Windows 10? 0 Answers
Input.Touches Mouse position Shooting Buttons 1 Answer
Quad not working correctly in game build 0 Answers
Firing to a mouse position 0 Answers