Dealing With Fullscreen In Unity

<p>Fullscreen is easy, right? Unity handles it for you, and you can always just set Screen.fullScreen, right?</p> <p>Well, yes and no. There are some weird quirks in Unity&rsquo;s fullscreen implementation, at least on Mac. I haven&rsquo;t verified whether these issues also exist on Windows, but the workarounds I came up with don&rsquo;t break anything on Windows, so they&rsquo;re safe to use (as far as I&rsquo;m aware).</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:512/1*SBstNHJiIyTAOCpVLT-IGQ.png" style="height:512px; width:512px" /></p> <p>Unity has some issues with fullscreen</p> <p>If you have any questions about this article or about Unity development, you can find me in my discord server :&nbsp;<a href="https://discord.gg/zeCKc8SnHs" rel="noopener ugc nofollow" target="_blank">https://discord.gg/zeCKc8SnHs</a></p> <h1>The problem</h1> <p>Let&rsquo;s start with a blank Unity project. I set it to 2D (but the issue applies to 3D as well), and set the camera to clear to a nice solid color.</p> <p><a href="https://gamesfromearth.medium.com/dealing-with-fullscreen-in-unity-43b7673f9732"><strong>Visit Now</strong></a></p>